xin
2025-10-17 ab0637e981ab4c85120ccde35ee24ec4abbe3e24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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));
    }
}