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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
package com.ruoyi.quality.pojo;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.basic.dto.StorageBlobDTO;
import com.ruoyi.basic.dto.StorageBlobVO;
import com.ruoyi.dto.DateQueryDto;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
 
/**
 * 质量管理--原材料/过程/出厂检验
 * quality_inspect
 */
@TableName(value = "quality_inspect")
@Data
public class QualityInspect extends DateQueryDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
 
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long id;
 
    /**
     * 类别(0:原材料检验;1:过程检验;2:出厂检验)
     */
    @Excel(name = "类别",readConverterExp = "0=原材料检验,1=过程检验,2=出厂检验")
    private Integer inspectType;
 
    /**
     * 检测日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;
 
 
 
 
    /**
     * 供应商名称(原材料检验)
     */
    @Excel(name = "供应商名称")
    private String supplier;
 
    /**
     * 客户名称(过程检验/出厂检验)
     */
    @Excel(name = "客户名称")
    private String customer;
 
    /**
     * 工序(过程检验)
     */
    @Excel(name = "工序")
    private String process;
 
    /**
     * 工序类型
     */
    @Excel(name = "工序类型")
    private Integer processType;
 
    /**
     * 检验员
     */
    @Excel(name = "检验员")
    private String checkName;
 
    /**
     * 关联产品id
     */
    private Long productId;
 
    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;
 
    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String model;
 
    /**
     * 材质
     */
    @Excel(name = "材质")
    private String material;
 
    /**
     * 验收依据
     */
    @Excel(name = "验收依据")
    private String acceptanceBasis;
 
    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;
 
    /**
     * 数量
     */
    @Excel(name = "总数量")
    private BigDecimal quantity;
 
    /**
     * 抽检数
     */
    @Excel(name = "抽检数")
    private BigDecimal samplingCount;
 
    /**
     * 图纸关键部位尺寸
     */
    @Excel(name = "图纸关键部位尺寸")
    private String drawingKeyDimensions;
 
    /**
     * 实测关键部位尺寸
     */
    @Excel(name = "实测关键部位尺寸")
    private String measuredKeyDimensions;
 
    /**
     * 主要技术参数(过程检验)
     */
    @Excel(name = "主要技术参数")
    private String mainTechnicalParams;
 
    /**
     * 实际技术参数(过程检验)
     */
    @Excel(name = "实际技术参数")
    private String actualTechnicalParams;
 
    /**
     * 说明书(过程检验)
     */
    @Excel(name = "说明书")
    private String specificationManual;
 
    /**
     * 入库编号
     */
    @Excel(name = "入库编号")
    private String warehouseCode;
 
    /**
     * 所属设备名称
     */
    @Excel(name = "所属设备名称")
    private String equipmentName;
 
    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String projectName;
 
    /**
     * 判定(合格/不合格)
     */
    @Excel(name = "判定")
    private String verdict;
 
    /**
     * 异常备注(原材料检验)
     */
    private String abnormalRemark;
 
    @Excel(name = "合格数量")
    @TableField("qualified_quantity")
    private BigDecimal qualifiedQuantity;
 
    @Excel(name = "不合格数量")
    @TableField("unqualified_quantity")
    private BigDecimal unqualifiedQuantity;
 
    /**
     * 检测单位
     */
    @Excel(name = "检测单位")
    private String checkCompany;
 
    /**
     * 检测结果
     */
    @Excel(name = "检测结果")
    private String checkResult;
 
 
 
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
 
    @Schema(description = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
 
    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
 
    @Schema(description = "修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
 
    @Schema(description = "租户ID")
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
 
    /**
     * 类别(0:未提交;1:已提交)
     */
    private Integer inspectState;
 
    private Long purchaseLedgerId;
 
    /**
     * 报工id
     */
    private Long productMainId;
 
    private Long productModelId;
    //不合格现象
    private String defectivePhenomena;
 
    @Schema(description = "关联检测标准主表id")
    private Long testStandardId;
 
 
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
 
    @Schema(description = "附件列表(新增/编辑时传入)")
    @TableField(exist = false)
    private List<StorageBlobDTO> storageBlobDTOs;
 
    @Schema(description = "附件列表(查询时返回)")
    @TableField(exist = false)
    private List<StorageBlobVO> storageBlobVOs;
}