zhangherong
2025-05-09 ecc524d300af8afe0b713572c990f69594e097c9
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
package org.jeecg.modules.eam.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.modules.mdc.util.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
public class EquipmentRepairListVO implements Serializable {
    /**
     * 设备编码
     */
    private String equipmentCode;
    /**
     * 设备名称
     */
    private String equipmentName;
    /**
     * 使用车间
     */
    private String orgId;
    /**
     * 安装位置
     */
    private String installationPosition;
    /**
     * 报修人
     */
    private String reportOperator;
    /**
     * 故障开始时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yy-MM-dd HH:mm")
    private Date faultStartTime;
    /**
     * 维修人
     */
    private String repairOperator;
    /**
     * 接单时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yy-MM-dd HH:mm")
    private Date repairStartTime;
    /**
     * 故障持续时长(MIN)
     */
    private Integer faultDuration;
    /**
     * 工单状态
     */
    private String reportStatus;
 
    //计算 故障持续时长  分钟
    public Integer getFaultDuration() {
        if (faultStartTime != null) {
            return DateUtils.differentMinutes(faultStartTime, new Date());
        }
        return null;
    }
}