liyong
4 天以前 f90d9f53beb844265c4153159aadb0baf81bafdb
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
package cn.iocoder.yudao.module.aftersales.dal.dataobject.ticket;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.aftersales.enums.AfterSaleIssueTypeEnum;
import cn.iocoder.yudao.module.aftersales.enums.AfterSaleTicketStatusEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.time.LocalDateTime;
 
/**
 * 售后工单 DO
 */
@TableName("after_sale_ticket")
@KeySequence("after_sale_ticket_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AfterSaleTicketDO extends BaseDO {
 
    /**
     * 工单编号
     */
    @TableId
    private Long id;
    /**
     * 工单单号
     */
    private String no;
    /**
     * 工单主题/标题
     */
    private String name;
    /**
     * 客户编号,关联 crm_customer.id
     */
    private Long customerId;
    /**
     * 联系人编号,关联 crm_contact.id
     */
    private Long contactId;
    /**
     * 销售订单编号,关联 erp_sale_order.id
     */
    private Long saleOrderId;
    /**
     * 销售订单号(冗余)
     */
    private String saleOrderNo;
    /**
     * 合同编号,关联 crm_contract.id
     */
    private Long contractId;
    /**
     * 问题类型
     *
     * 枚举 {@link AfterSaleIssueTypeEnum}
     */
    private Integer issueType;
    /**
     * 问题分类: 外观缺陷/功能故障/尺寸偏差/包装破损/其他
     */
    private String issueCategory;
    /**
     * 问题描述
     */
    private String issueDescription;
    /**
     * 严重程度: 0-轻微 1-一般 2-严重 3-致命
     */
    private Integer severityLevel;
    /**
     * 工单状态
     *
     * 枚举 {@link AfterSaleTicketStatusEnum}
     */
    private Integer status;
    /**
     * 负责人用户编号
     */
    private Long ownerUserId;
    /**
     * 处理人用户编号
     */
    private Long handlerUserId;
    /**
     * BPM 工作流实例编号
     */
    private String processInstanceId;
    /**
     * 关联退货申请编号,关联 after_sale_return.id
     */
    private Long returnId;
    /**
     * 关联维修记录编号,关联 after_sale_repair.id
     */
    private Long repairId;
    /**
     * 解决时间
     */
    private LocalDateTime resolvedTime;
    /**
     * 关闭时间
     */
    private LocalDateTime closedTime;
    /**
     * 备注
     */
    private String remark;
 
}