package com.oying.modules.fee.domain;
|
|
import lombok.Getter;
|
import lombok.Setter;
|
import cn.hutool.core.bean.BeanUtil;
|
import io.swagger.annotations.ApiModelProperty;
|
import cn.hutool.core.bean.copier.CopyOptions;
|
import java.sql.Timestamp;
|
import java.math.BigDecimal;
|
import javax.validation.constraints.NotNull;
|
import java.io.Serializable;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
/**
|
* @description /
|
* @author lixin
|
* @date 2025-10-07
|
**/
|
@Getter
|
@Setter
|
@TableName("fee_order_shipping_fees")
|
public class OrderShippingFees implements Serializable {
|
|
@TableId(value = "order_id", type = IdType.AUTO)
|
@ApiModelProperty(value = "订单ID")
|
private Long orderId;
|
|
@ApiModelProperty(value = "订单编号")
|
private String orderNum;
|
|
@NotNull
|
@ApiModelProperty(value = "城市ID")
|
private Long cityId;
|
|
@ApiModelProperty(value = "城市名称")
|
private String cityName;
|
|
@ApiModelProperty(value = "品类ID ")
|
private Long categoryId;
|
|
@ApiModelProperty(value = "特殊品类名称")
|
private String categoryName;
|
|
@NotNull
|
@ApiModelProperty(value = "重量 (公斤)")
|
private BigDecimal weight;
|
|
@NotNull
|
@ApiModelProperty(value = "距离 (公里)")
|
private BigDecimal distance;
|
|
@NotNull
|
@ApiModelProperty(value = "下单时间")
|
private Timestamp orderTime;
|
|
@ApiModelProperty(value = "是否特殊条件")
|
private Integer isSpecialConditions;
|
|
@NotNull
|
@ApiModelProperty(value = "基础运费")
|
private BigDecimal baseFee;
|
|
@NotNull
|
@ApiModelProperty(value = "重量加价")
|
private BigDecimal weightSurcharge;
|
|
@NotNull
|
@ApiModelProperty(value = "距离加价")
|
private BigDecimal distanceSurcharge;
|
|
@NotNull
|
@ApiModelProperty(value = "时段加价")
|
private BigDecimal timeSurcharge;
|
|
@ApiModelProperty(value = "特殊条件加价")
|
private BigDecimal specialConditionSurcharge;
|
|
@NotNull
|
@ApiModelProperty(value = "总运费")
|
private BigDecimal totalFee;
|
|
@NotNull
|
@ApiModelProperty(value = "创建时间")
|
private Timestamp createdAt;
|
|
public void copy(OrderShippingFees source){
|
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
}
|
}
|