| | |
| | | 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; |
| | | |
| | |
| | | |
| | | /*序号*/ |
| | | 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 Date startTime; |
| | | /*结束时间*/ |
| | | private Date endTime; |
| | | /*时长*/ |
| | | private Long duration; |
| | | /*状态,0:关机,1:开机,2:待机,3:工作,22:报警*/ |
| | | private Integer status; |
| | | |
| | | /*报警*/ |
| | | private String alarm; |
| | | /*伪列 报警内容*/ |
| | | private String alarmContent; |
| | | //程序号 |
| | | private String sequenceNumber; |
| | | |
| | | public String convertgetDuration(){ |
| | | return DateUtils.secondsToTime(this.duration.intValue()); |
| | | } |
| | | |
| | | } |