hsy
4 天以前 bb0b80bd7ca7c1f979ab0125ae01f3faa1d14f4b
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
package cn.iocoder.yudao.module.mes.dal.dataobject.qc.ncr;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.md.item.MesMdItemDO;
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
import cn.iocoder.yudao.module.mes.enums.qc.MesNcrDispositionEnum;
import cn.iocoder.yudao.module.mes.enums.qc.MesNcrStatusEnum;
import cn.iocoder.yudao.module.mes.enums.qc.MesQcDefectLevelEnum;
import cn.iocoder.yudao.module.mes.enums.qc.MesQcTypeEnum;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * MES 不合格品处理单(NCR) DO
 *
 * @author 超级管理员
 */
@TableName("mes_qc_ncr")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesQcNcrDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * NCR 单号
     */
    private String code;
    /**
     * NCR 名称
     */
    private String name;
 
    // ========== 来源检验单 ==========
 
    /**
     * 检验类型(IQC/IPQC/OQC/RQC)
     *
     * 字典 {@link DictTypeConstants#MES_QC_TYPE}
     * 枚举 {@link MesQcTypeEnum}
     */
    private Integer qcType;
    /**
     * 来源检验单 ID
     */
    private Long qcId;
    /**
     * 来源检验单编号(冗余)
     */
    private String qcCode;
 
    // ========== 不合格品信息 ==========
 
    /**
     * 不合格物料 ID
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long itemId;
    /**
     * 缺陷等级(致命/严重/轻微)
     *
     * 字典 {@link DictTypeConstants#MES_DEFECT_LEVEL}
     * 枚举 {@link MesQcDefectLevelEnum}
     */
    private Integer defectLevel;
    /**
     * 不合格数量
     */
    private BigDecimal unqualifiedQuantity;
    /**
     * 不合格描述
     */
    private String defectDescription;
 
    // ========== 评审信息 ==========
 
    /**
     * 处置方式(退货/报废/返工/让步接收/降级使用)
     *
     * 字典 {@link DictTypeConstants#MES_NCR_DISPOSITION}
     * 枚举 {@link MesNcrDispositionEnum}
     */
    private Integer disposition;
    /**
     * 责任部门 ID
     */
    private Long responsibleDeptId;
    /**
     * 评审人 ID
     */
    private Long reviewerUserId;
    /**
     * 评审日期
     */
    private LocalDateTime reviewDate;
    /**
     * 评审意见
     */
    private String reviewOpinion;
 
    // ========== 处理信息 ==========
 
    /**
     * 处理人 ID
     */
    private Long handlerUserId;
    /**
     * 处理日期
     */
    private LocalDateTime handleDate;
    /**
     * 处理结果说明
     */
    private String handleResult;
 
    // ========== 原因与措施 ==========
 
    /**
     * 根本原因
     */
    private String rootCause;
    /**
     * 纠正措施
     */
    private String correctiveAction;
    /**
     * 预防措施
     */
    private String preventiveAction;
 
    // ========== 关闭信息 ==========
 
    /**
     * 关闭人 ID
     */
    private Long closeUserId;
    /**
     * 关闭日期
     */
    private LocalDateTime closeDate;
    /**
     * 关闭意见
     */
    private String closeOpinion;
 
    // ========== 状态与流程 ==========
 
    /**
     * 状态(待评审/已评审/已处置/已关闭)
     *
     * 字典 {@link DictTypeConstants#MES_NCR_STATUS}
     * 枚举 {@link MesNcrStatusEnum}
     */
    private Integer status;
    /**
     * BPM 流程实例 ID(预留)
     */
    private String processInstanceId;
    /**
     * 备注
     */
    private String remark;
 
}