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());
|
}
|
|
}
|