xin
2025-07-14 d2985d31ba7b387749b2350882172f675b923347
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
package com.oying.modules.sh.domain;
 
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
 
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
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;
import lombok.Getter;
import lombok.Setter;
 
/**
 * @author lixin
 * @description /
 * @date 2025-06-11
 **/
@Getter
@Setter
@TableName("sh_order_address_snapshot")
public class OrderAddressSnapshot implements Serializable {
 
    @TableId(value = "snapshot_id", type = IdType.AUTO)
    @ApiModelProperty(value = "快照ID")
    private Long snapshotId;
 
    @NotNull
    @ApiModelProperty(value = "订单号")
    private String orderNum;
 
    @NotBlank
    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;
 
    @NotBlank
    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;
 
    @ApiModelProperty(value = "省份")
    private String province;
 
    @ApiModelProperty(value = "城市")
    private String city;
 
    @ApiModelProperty(value = "区县")
    private String district;
 
    @ApiModelProperty(value = "街道")
    private String street;
 
    @ApiModelProperty(value = "短地址")
    @NotBlank
    private String shortAddress;
 
    @NotBlank
    @ApiModelProperty(value = "详细地址")
    private String detail;
 
    @NotNull
    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;
 
    @NotNull
    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;
 
    @ApiModelProperty(value = "地址标签(家/公司/学校等)")
    private String tag;
 
    public void copy(OrderAddressSnapshot source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}