4 天以前 06321d70dd7617fdc7d475b190e629143fec3263
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
package cn.iocoder.yudao.module.mes.controller.admin.pro.batch.vo;
 
import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - MES 生产批次 Response VO")
@Data
public class MesProBatchRespVO {
 
    @Schema(description = "编号", example = "1024")
    @ExcelProperty("编号")
    private Long id;
 
    @Schema(description = "批次号", example = "PC20260818L01NY001")
    @ExcelProperty("批次号")
    @ColumnWidth(25)
    private String code;
 
    @Schema(description = "品种(产品物料)编号", example = "1")
    @ExcelIgnore
    private Long itemId;
 
    @Schema(description = "品种编码")
    @ExcelProperty("品种编码")
    private String itemCode;
 
    @Schema(description = "品种名称")
    @ExcelProperty("品种名称")
    private String itemName;
 
    @Schema(description = "品种规格")
    @ExcelProperty("品种规格")
    private String itemSpecification;
 
    @Schema(description = "产线编号", example = "1")
    @ExcelIgnore
    private Long lineId;
 
    @Schema(description = "产线编码", example = "L01")
    @ExcelProperty("产线编码")
    private String lineCode;
 
    @Schema(description = "产线名称", example = "包装一线")
    @ExcelProperty("产线名称")
    private String lineName;
 
    @Schema(description = "生产日期")
    @ExcelProperty("生产日期")
    @ColumnWidth(20)
    private LocalDateTime produceDate;
 
    @Schema(description = "计划数量", example = "1000")
    @ExcelProperty("计划数量")
    private BigDecimal planQuantity;
 
    @Schema(description = "责任人用户编号", example = "1")
    @ExcelIgnore
    private Long ownerUserId;
 
    @Schema(description = "责任人昵称")
    @ExcelProperty("责任人")
    private String ownerUserName;
 
    @Schema(description = "已生成袋码数量(一袋一码)")
    @ExcelProperty("袋码数量")
    private Integer bagQuantity;
 
    @Schema(description = "已生成托盘码数量")
    @ExcelProperty("托盘码数量")
    private Integer palletQuantity;
 
    @Schema(description = "批次状态(字典 mes_pro_batch_status)", example = "20")
    @ExcelProperty(value = "批次状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.MES_PRO_BATCH_STATUS)
    private Integer status;
 
    @Schema(description = "备注")
    @ExcelProperty("备注")
    @ColumnWidth(30)
    private String remark;
 
    @Schema(description = "创建时间")
    @ExcelIgnore
    private LocalDateTime createTime;
 
    @Schema(description = "生产人员配置列表")
    @ExcelIgnore
    private List<MesProBatchWorkerRespVO> workers;
 
}