Lius
2025-03-04 79bb09af27e6b2e6b4b898af7a1922e9c82f8762
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
package org.jeecg.modules.mdc.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.modules.mdc.util.DateUtils;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.util.Date;
 
/**
 * @author: LiuS
 * @create: 2023-04-18 13:55
 */
@Data
public class MdcEquipmentRunningSectionDto {
 
    /*序号*/
    private String id;
 
    /*状态,0:关机,1:开机,2:待机,3:工作,22:报警*/
    @Excel(name = "状态", width = 15, replace={"关机_0","开机_1","待机_2","工作_3","报警_22"})
    private Integer status;
 
    /*开始时间*/
    @Excel(name = "开始时间", width = 24, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;
 
    /*结束时间*/
    @Excel(name = "结束时间", width = 24, 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")
    private Date endTime;
 
    /*持续时间*/
    @Excel(name = "持续时间", width = 24, exportConvert = true)
    private Long duration;
 
    //程序号
    @Excel(name = "程序号", width = 20)
    private String sequenceNumber;
 
    /*设备*/
    private String equipmentId;
 
    /*报警*/
    private String alarm;
    /*伪列 报警内容*/
    private String alarmContent;
 
    public String convertgetDuration(){
        return DateUtils.secondsToTime(this.duration.intValue());
    }
 
}