liyong
2026-07-10 80ddf4c9c0bcb0f6c31524e0d9f5599c8001e904
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
package cn.iocoder.yudao.module.mes.controller.admin.qc.indicatorresult.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - MES 检验结果 Response VO")
@Data
public class MesQcIndicatorResultRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "样品编号", example = "SPL-001")
    private String code;
 
    @Schema(description = "关联质检单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long qcId;
 
    @Schema(description = "质检类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer qcType;
 
    @Schema(description = "产品物料ID", example = "1")
    private Long itemId;
 
    @Schema(description = "物资SN", example = "SN-001")
    private String sn;
 
    @Schema(description = "备注", example = "无")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;
 
    // ========== 子表:检验结果明细 ==========
 
    @Schema(description = "检验结果明细列表")
    private List<Item> items;
 
    @Schema(description = "检验结果明细项")
    @Data
    public static class Item {
 
        @Schema(description = "编号", example = "1024")
        private Long id;
 
        @Schema(description = "关联检验结果ID", example = "1")
        private Long resultId;
 
        @Schema(description = "检测指标ID", example = "1")
        private Long indicatorId;
 
        @Schema(description = "检测值(统一存为字符串)", example = "3.14")
        private String value;
 
        @Schema(description = "备注", example = "无")
        private String remark;
 
        // ========== 关联查询字段(来自 indicator) ==========
 
        @Schema(description = "检测指标名称", example = "外观检查")
        private String indicatorName;
 
        @Schema(description = "质检值类型", example = "1")
        private Integer valueType;
 
        @Schema(description = "值属性", example = "IMG")
        private String valueSpecification;
 
    }
 
}