xin
5 days ago a46a00bdc22da9ece8bb09ac7d6bcbdfbabdd6ab
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
package com.oying.modules.sh.domain;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.oying.base.BaseEntity;
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.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Objects;
import java.util.Set;
 
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_return")
public class OrderReturn extends BaseEntity implements Serializable {
 
    @TableId(value = "return_id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long returnId;
 
    @NotBlank
    @ApiModelProperty(value = "退单号")
    private String returnNum;
 
    @NotNull
    @ApiModelProperty(value = "退单状态")
    private Integer returnStatus = 0;
 
    @NotBlank
    @ApiModelProperty(value = "退单状态描述")
    private String returnStatusDescribe;
 
    @NotBlank
    @ApiModelProperty(value = "订单号")
    private String orderNum;
 
    @NotBlank
    @ApiModelProperty(value = "预计送达时间")
    private String orderTime;
 
    @NotBlank
    @ApiModelProperty(value = "取单号")
    private String orderStoreNum;
 
    @NotNull
    @ApiModelProperty(value = "配送费")
    private BigDecimal sendPrice;
 
    @NotBlank
    @ApiModelProperty(value = "配送类型")
    private String sendType;
 
    @ApiModelProperty(value = "骑手Id")
    private Long riderId;
 
    @ApiModelProperty(value = "骑手手机号")
    private String riderPhone;
 
    @ApiModelProperty(value = "骑手名称")
    private String riderName;
 
    @NotBlank
    @ApiModelProperty(value = "支付类型")
    private String payType;
 
    @NotNull
    @ApiModelProperty(value = "用户")
    private Long userId;
 
    @NotBlank
    @ApiModelProperty(value = "用户账号")
    private String username;
 
    @NotNull
    @ApiModelProperty(value = "门店ID")
    private Long storeId;
 
    @NotBlank
    @ApiModelProperty(value = "门店名称")
    private String storeName;
 
    @NotBlank
    @ApiModelProperty(value = "门店LOGO")
    private String storeLogo;
 
    @NotNull
    @ApiModelProperty(value = "原金额")
    private BigDecimal originalPrice;
 
    @NotNull
    @ApiModelProperty(value = "折扣价")
    private BigDecimal paidPrice;
 
    @NotNull
    @ApiModelProperty(value = "实付金额")
    private BigDecimal actuallyPayPrice;
 
    @ApiModelProperty(value = "退款价格")
    private BigDecimal refundPrice;
 
    @ApiModelProperty(value = "退款状态")
    private String refundStatus;
 
    @ApiModelProperty(value = "退款成功时间")
    private String successTime;
 
    @ApiModelProperty(value = "退款渠道")
    private String channel;
 
    @ApiModelProperty(value = "退款原因")
    private String reason;
 
    @ApiModelProperty(value = "备注")
    private String remark;
 
    @ApiModelProperty(value = "图片")
    private String photos;
 
    @ApiModelProperty(value = "审核状态")
    private Integer auditStatus;
 
    @ApiModelProperty(value = "审核人")
    private String auditUser;
 
    @ApiModelProperty(value = "审核时间")
    private Timestamp auditTime;
 
    @ApiModelProperty(value = "审核信息")
    private String auditMessage;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "商品")
    private Set<OrderReturnProductSnapshot> productSnapshots;
 
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        OrderReturn info = (OrderReturn) o;
        return Objects.equals(returnId, info.returnId) &&
                Objects.equals(returnNum, info.returnNum);
    }
 
    @Override
    public int hashCode() {
        return Objects.hash(returnId, returnNum);
    }
 
    public void copy(OrderReturn source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}