liyong
5 天以前 9b386ddaa6c8892d346d1e09b8bea20cb9000f58
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
package cn.iocoder.yudao.module.mes.controller.admin.dv.maintenrecord.vo;
 
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 cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - MES 设备保养记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MesDvMaintenRecordRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("编号")
    private Long id;
 
    @Schema(description = "计划编号", example = "1")
    private Long planId;
 
    @Schema(description = "计划名称", example = "保养计划1")
    @ExcelProperty("计划名称")
    private String planName;
 
    @Schema(description = "计划编码", example = "P001")
    @ExcelProperty("计划编码")
    private String planCode;
 
    @Schema(description = "开始时间")
    @ExcelProperty("开始时间")
    private LocalDateTime planStartDate;
 
    @Schema(description = "结束日期")
    @ExcelProperty("结束日期")
    private LocalDateTime planEndDate;
 
    @Schema(description = "频率类型", example = "1")
    @ExcelProperty(value = "频率类型", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.MES_DV_CYCLE_TYPE)
    private Integer planCycleType;
 
    @Schema(description = "频率数量", example = "5")
    @ExcelProperty(value = "频率数量")
    private Integer planCycleCount;
 
    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long machineryId;
 
    @Schema(description = "设备编码", example = "M001")
    @ExcelProperty("设备编码")
    private String machineryCode;
 
    @Schema(description = "设备名称", example = "机床A")
    @ExcelProperty("设备名称")
    private String machineryName;
 
    @Schema(description = "品牌", example = "西门子")
    @ExcelProperty("品牌")
    private String machineryBrand;
 
    @Schema(description = "规格型号", example = "X-100")
    @ExcelProperty("规格型号")
    private String machinerySpecification;
 
    @Schema(description = "保养时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("保养时间")
    private LocalDateTime maintenTime;
 
    @Schema(description = "用户编号", example = "1")
    private Long userId;
 
    @Schema(description = "保养人名称", example = "张三")
    @ExcelProperty("保养人")
    private String nickname;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.MES_MAINTEN_RECORD_STATUS)
    private Integer status;
 
    @Schema(description = "备注", example = "测试备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
}