zhaowenxuan
2025-02-06 06c12d2b42c343798d9476be66031b48967df639
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
package com.ltkj.mall.domain;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ltkj.common.annotation.Excel;
import com.ltkj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
/**
 * 售后对象 mall_aftersale
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-07-12
 */
@Data
@ApiModel(value = "售后表")
public class MallAftersale extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 售后编号
     */
    @Excel(name = "售后编号")
    @ApiModelProperty(value = "售后编号")
    private String aftersaleSn;
    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    @ApiModelProperty(value = "订单ID")
    private String orderId;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;
 
    @Excel(name = "体检人身份证号")
    @ApiModelProperty(value = "体检人身份证号")
    private String cusIdCard;
 
    @Excel(name = "体检人姓名")
    @ApiModelProperty(value = "体检人姓名")
    private String cusName;
 
 
 
    /**
     * 售后类型,0是未收货退款,1是已收货(无需退货)退款,2用户退货退款
     */
    @Excel(name = "售后类型,0是未收货退款,1是已收货", readConverterExp = "无=需退货")
    @ApiModelProperty(value = "售后类型,0是未收货退款,1是已收货")
    private Long type;
    /**
     * 退款原因
     */
    @Excel(name = "退款原因")
    @ApiModelProperty(value = "退款原因")
    private String reason;
    /**
     * 退款金额
     */
    @Excel(name = "退款金额")
    @ApiModelProperty(value = "退款金额")
    private BigDecimal amount;
    /**
     * 退款凭证图片链接数组
     */
    @Excel(name = "退款凭证图片链接数组")
    @ApiModelProperty(value = "退款凭证图片链接数组")
    private String pictures;
    /**
     * 退款说明
     */
    @Excel(name = "退款说明")
    @ApiModelProperty(value = "退款说明")
    private String comment;
    /**
     * 售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消
     */
    @Excel(name = "售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消")
    @ApiModelProperty(value = "售后状态,0是可申请,1是用户已申请,2是管理员审核通过,3是管理员退款成功,4是管理员审核拒绝,5是用户已取消")
    private Long status;
    /**
     * 管理员操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "管理员操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "管理员操作时间")
    private Date handleTime;
    @TableField(exist = false)
    private List<MallOrderGoods> orderGoodsList;
 
    @TableField(exist = false)
    private String startTime;
 
 
    @TableField(exist = false)
    private String endTime;
 
    /**
     * 收货人名称
     */
    @TableField(exist = false)
    private String consignee;
 
    /**
     * 收货人手机号
     */
    @TableField(exist = false)
    private String mobile;
 
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setAftersaleSn(String aftersaleSn) {
        this.aftersaleSn = aftersaleSn;
    }
 
    public String getAftersaleSn() {
        return aftersaleSn;
    }
 
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
 
    public String getOrderId() {
        return orderId;
    }
 
    public void setUserId(Long userId) {
        this.userId = userId;
    }
 
    public Long getUserId() {
        return userId;
    }
 
    public void setType(Long type) {
        this.type = type;
    }
 
    public Long getType() {
        return type;
    }
 
    public void setReason(String reason) {
        this.reason = reason;
    }
 
    public String getReason() {
        return reason;
    }
 
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
 
    public BigDecimal getAmount() {
        return amount;
    }
 
    public void setPictures(String pictures) {
        this.pictures = pictures;
    }
 
    public String getPictures() {
        return pictures;
    }
 
    public void setComment(String comment) {
        this.comment = comment;
    }
 
    public String getComment() {
        return comment;
    }
 
    public void setStatus(Long status) {
        this.status = status;
    }
 
    public Long getStatus() {
        return status;
    }
 
    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }
 
    public Date getHandleTime() {
        return handleTime;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("aftersaleSn", getAftersaleSn())
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("type", getType())
                .append("reason", getReason())
                .append("amount", getAmount())
                .append("pictures", getPictures())
                .append("comment", getComment())
                .append("status", getStatus())
                .append("handleTime", getHandleTime())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .toString();
    }
}