cuijian
2023-08-19 bdd0875d4b13a3f1ef472f64d4b6a95e0ef64b22
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
260
261
262
263
package org.jeecg.modules.eam.entity;
 
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;
import org.jeecg.common.constant.CommonConstant;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
/**
 * @Description: 维修工单
 * @Author: jeecg-boot
 * @Date:   2023-04-25
 * @Version: V1.0
 */
@Data
@TableName("mom_eam_repair_order")
@ApiModel(value="mom_eam_repair_order对象", description="维修工单")
@Accessors(chain = true)
public class RepairOrder implements Serializable {
    private static final long serialVersionUID = 1L;
 
    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**维修订单号*/
    @Excel(name = "维修订单号", width = 15)
    @ApiModelProperty(value = "维修订单号")
    private String num;
    /**设备台账ID*/
    @Excel(name = "设备台账ID", width = 15)
    @ApiModelProperty(value = "设备台账ID")
    private String equipmentId;
    /**故障报修单ID*/
    @Excel(name = "故障报修单ID", width = 15)
    @ApiModelProperty(value = "故障报修单ID")
    @Dict(dicCode = "id",dictTable ="mom_eam_equipment_report_repair",dicText = "num")
    private String reportRepairId;
 
    /**项目性维修单ID*/
    @Excel(name = "项目性维修单ID", width = 15)
    @ApiModelProperty(value = "项目性维修单ID")
    @Dict(dicCode = "id",dictTable ="mom_eam_project_maintenance_order",dicText = "num")
    private String projectMaintenanceOrderId;
    /**班组ID*/
    @Excel(name = "班组ID", width = 15)
    @ApiModelProperty(value = "班组ID")
    @Dict(dicCode = "id",dictTable ="mom_base_team",dicText = "name")
    private String teamId;
    /**使用部门ID*/
    @Excel(name = "使用部门ID", width = 15)
    @ApiModelProperty(value = "使用部门ID")
    @Dict(dicCode = "id",dictTable ="sys_depart",dicText = "depart_name")
    private String departId;
    /**故障描述*/
    @Excel(name = "故障描述", width = 15)
    @ApiModelProperty(value = "故障描述")
    private String faultDescription;
    /**故障时间*/
    @Excel(name = "故障时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "故障时间")
    private Date faultTime;
    /**故障照片*/
    @Excel(name = "故障照片", width = 15)
    @ApiModelProperty(value = "故障照片")
    private String photo;
    /**是否停机*/
    @Excel(name = "是否停机", width = 15)
    @ApiModelProperty(value = "是否停机")
    @Dict(dicCode = "is_stop")
    private String isStop;
    /**计划开始时间*/
    @Excel(name = "计划开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划开始时间")
    private Date planStartTime;
    /**计划结束时间*/
    @Excel(name = "计划结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划结束时间")
    private Date planEndTime;
    /**实际开始时间*/
    @Excel(name = "实际开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际开始时间")
    private Date actualStartTime;
    /**实际结束时间*/
    @Excel(name = "实际结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际结束时间")
    private Date actualEndTime;
    /**领取人ID*/
    @Excel(name = "领取人", width = 15)
    @ApiModelProperty(value = "领取人ID")
    @Dict(dicCode = "id",dictTable ="sys_user",dicText = "username")
    private String recipientUserId;
    /**报修人ID*/
    @Excel(name = "报修人", width = 15)
    @ApiModelProperty(value = "报修人ID")
    @Dict(dicCode = "id",dictTable ="sys_user",dicText = "username")
    private String reportUserId;
    /**工时定额*/
    @Excel(name = "工时定额", width = 15)
    @ApiModelProperty(value = "工时定额")
    private BigDecimal workingHourQuota;
    /**工单执行状态(数据字典:repair_order_status)*/
    @Excel(name = "工单执行状态(数据字典:repair_order_status)", width = 15)
    @ApiModelProperty(value = "工单执行状态(数据字典:repair_order_status)")
    @Dict(dicCode = "repair_order_status")
    private String status;
    /**维保方式*/
    @Excel(name = "维保方式", width = 15)
    @ApiModelProperty(value = "维保方式")
    @Dict(dicCode = "maintenance_method")
    private String maintenanceMethod;
    /**备用字段1*/
    @Excel(name = "备用字段1", width = 15)
    @ApiModelProperty(value = "备用字段1")
    private String repairOrderUda1;
    /**备用字段2*/
    @Excel(name = "备用字段2", width = 15)
    @ApiModelProperty(value = "备用字段2")
    private String repairOrderUda2;
    /**备用字段3*/
    @Excel(name = "备用字段3", width = 15)
    @ApiModelProperty(value = "备用字段3")
    private String repairOrderUda3;
    /**备用字段4*/
    @Excel(name = "备用字段4", width = 15)
    @ApiModelProperty(value = "备用字段4")
    private String repairOrderUda4;
    /**备用字段5*/
    @Excel(name = "备用字段5", width = 15)
    @ApiModelProperty(value = "备用字段5")
    private String repairOrderUda5;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**删除状态(0-正常,1-已删除)*/
    @Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @Dict(dicCode = "del_flag")
    private Integer delFlag = CommonConstant.DEL_FLAG_0;
    /**维修工单类型(数据字典:repair_order_type,0:正常维修工单,1:修后汇报工单)*/
    @Excel(name = "维修工单类型", width = 15)
    @ApiModelProperty(value = "维修工单类型")
    @Dict(dicCode = "repair_order_type")
    private Integer repairOrderType;
    /**租户ID*/
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**企业ID*/
    @Excel(name = "企业ID", width = 15)
    @ApiModelProperty(value = "企业ID")
    private String enterpriseId;
    /**企业ID*/
    @Excel(name = "责任人ID", width = 15)
    @Dict(dicCode = "id",dictTable ="sys_user",dicText = "realname")
    @ApiModelProperty(value = "责任人ID")
    private String responsibilityId;
 
 
    /*委外单位*/
    @Excel(name = "委外单位", width = 15)
    @ApiModelProperty(value = "委外单位")
    private String outsourcingUnit;
 
 
    /*实际工时*/
    @Excel(name = "实际工时", width = 15)
    @ApiModelProperty(value = "实际工时")
    private BigDecimal actualHour;
 
    /**紧急程度*/
    @Excel(name = "紧急程度", width = 15)
    @ApiModelProperty(value = "紧急程度")
    @Dict(dicCode = "urgency")
    private String urgency;
 
    /**派工方式*/
    @Excel(name = "派工方式", width = 15)
    @ApiModelProperty(value = "派工方式")
    @Dict(dicCode = "dispatch_method")
    private String dispatchMethod;
 
    /**业务类型*/
    @Excel(name = "业务类型", width = 15)
    @ApiModelProperty(value = "业务类型")
    @Dict(dicCode = "repair_order_business_type")
    private String businessType;
 
    @TableField(exist = false)
    private String equipmentNum;
 
    @TableField(exist = false)
    private String equipmentName;
 
    @TableField(exist = false)
    private String equipmentModel;
    @TableField(exist = false)
    private String reportRepairNum;
    @TableField(exist = false)
    private String projectMaintenanceOrderNum;
    @TableField(exist = false)
    private String departName;
    @TableField(exist = false)
    private String outsourcingUnitName;
    @TableField(exist = false)
    private String responsibilityName;
    @TableField(exist = false)
    private String teamName;
 
    @TableField(exist = false)
    @Dict(dicCode = "specific_equipment")
    private String specificEquipment;
    @TableField(exist = false)
    List<RepairOrderFaultAnalysis> faultAnalysis;
    @TableField(exist = false)
    List<RepairOrderActualMaterial> actualMaterials;
    @TableField(exist = false)
    List<RepairOrderActualWorkHours> actualHours;
    @TableField(exist = false)
    List<RepairOrderDetail> orderDetails;
 
}