4 天以前 8f7c42bb0bced4697755299f67483be11da3e44d
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
package cn.iocoder.yudao.module.aftersales.dal.dataobject.returnobj;
 
// 注:package 名使用 returnobj 避免与 Java 关键字 return 冲突
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.aftersales.enums.AfterSaleReturnStatusEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * 售后退货申请 DO
 */
@TableName("after_sale_return")
@KeySequence("after_sale_return_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AfterSaleReturnDO extends BaseDO {
 
    /**
     * 退货申请编号
     */
    @TableId
    private Long id;
    /**
     * 退货单号
     */
    private String no;
    /**
     * 关联工单编号,关联 after_sale_ticket.id
     */
    private Long ticketId;
    /**
     * 客户编号
     */
    private Long customerId;
    /**
     * 关联销售订单编号
     */
    private Long saleOrderId;
    /**
     * 退货类型: 1-退款退货 2-换货 3-仅退款
     */
    private Integer returnType;
    /**
     * 退货原因
     */
    private String returnReason;
    /**
     * 缺陷分类
     */
    private String defectCategory;
    /**
     * 应退总金额
     */
    private BigDecimal totalReturnPrice;
    /**
     * 实退金额
     */
    private BigDecimal actualRefundPrice;
    /**
     * 退货状态
     *
     * 枚举 {@link AfterSaleReturnStatusEnum}
     */
    private Integer status;
    /**
     * 审核人
     */
    private Long auditUserId;
    /**
     * 审核时间
     */
    private LocalDateTime auditTime;
    /**
     * MES 退货单编号,关联 mes_wm_return_sales.id
     */
    private Long mesReturnId;
    /**
     * MES 退货单号(冗余)
     */
    private String mesReturnCode;
    /**
     * 质检结论: 合格/特采/退货/报废
     */
    private String qualityResult;
    /**
     * 质检报告附件URL
     */
    private String qualityReportUrl;
    /**
     * 退货入库完成时间
     */
    private LocalDateTime returnInboundTime;
    /**
     * 退款/换货完成时间
     */
    private LocalDateTime refundTime;
    /**
     * 备注
     */
    private String remark;
 
}