车间能级提升-智能设备管理系统
zhuguifei
2025-03-10 6648e74a007254e167c5508de5d25402cd4bb63b
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
package org.dromara.eims.domain.vo;
 
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.eims.domain.EimsMaintPlan;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
 
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
 
 
 
/**
 * 保养计划视图对象 eims_maint_plan
 *
 * @author zhuguifei
 * @date 2025-03-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EimsMaintPlan.class)
public class EimsMaintPlanVo implements Serializable {
 
    @Serial
    private static final long serialVersionUID = 1L;
 
    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;
 
    /**
     * 设备id
 
     */
    @ExcelProperty(value = "设备id")
    private Long equId;
 
    /**
     * 设备名称
     */
    @Translation(type = TransConstant.EQU_ID_TO_NAME, mapper = "equId")
    private String equName;
 
    /**
     * 设备资产编号
     */
    private String assetNo;
 
    /**
     * 保养类型(字典)
     */
    @ExcelProperty(value = "保养类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "eims_maint_type")
    private String maintType;
 
    /**
     * 保养周期
     */
    @ExcelProperty(value = "保养周期")
    private Long maintCycle;
 
    /**
     * 保养周期单位(字典)
     */
    @ExcelProperty(value = "保养周期单位", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "maint_cycle_unit")
    private String maintCycleUnit;
 
    /**
     * 字段拼接 maintCycle + maintCycleUnit的dictLabel
     */
    private String maintCycleUnitName;
 
    /**
     * 保养规则(字典)保养时间计算:1-按周期  2-按上次保养时间
     */
    @ExcelProperty(value = "保养规则", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "maint_time_rule")
    private String maintRule;
 
    /**
     * 保养人
     */
    @ExcelProperty(value = "保养人")
    private Long maintUser;
 
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "maintUser")
    private String maintUserName;
 
    /**
     * 保养部门
     */
    @ExcelProperty(value = "保养部门")
    private Long maintDept;
 
    private String maintDeptName;
 
    /**
     * 状态(字典) 0-启用  1-禁用
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private String status;
 
    /**
     * 首次执行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date maintFirstTime;
 
    /**
     * 上次执行时间
     */
    @ExcelProperty(value = "上次执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date maintLastTime;
 
    /**
     * 下次执行时间
     */
    @ExcelProperty(value = "下次执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date maintNextTime;
 
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 上次生成工单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastGenerateDate;
 
 
}