zhangherong
2025-06-25 23855599412c4d61b38d78f0f3abd3430a48b5b1
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/entity/MdcEquipmentRunningSection.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,114 @@
package org.jeecg.modules.mdc.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
/**
 * @Description: è®¾å¤‡è¿è¡Œæ—¶æ®µçŠ¶æ€è¡¨
 * @Author: jeecg-boot
 * @Date: 2023-04-13
 * @Version: V1.0
 */
@Data
@TableName("mdc_equipment_running_section")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "mdc_equipment_running_section对象", description = "设备运行时段状态表")
public class MdcEquipmentRunningSection extends JeecgEntity implements Serializable {
    /**
     * è®¾å¤‡ç¼–号
     */
    @Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String equipmentId;
    /**
     * æŠ¥è­¦å·
     */
    @Excel(name = "报警号", width = 15)
    @ApiModelProperty(value = "报警号")
    private String alarm;
    /**
     * æ—¶é•¿
     */
    @Excel(name = "时长", width = 15)
    @ApiModelProperty(value = "时长")
    private Long duration;
    /**
     * çŠ¶æ€,0:关机,1:开机,2:待机,3:工作,22:报警
     */
    @Excel(name = "状态,0:关机,1:开机,2:待机,3:工作,22:报警", width = 15)
    @ApiModelProperty(value = "状态,0:关机,1:开机,2:待机,3:工作,22:报警")
    private Integer status;
    /**
     * ç¨‹åºå·
     */
    @Excel(name = "程序号", width = 15)
    @ApiModelProperty(value = "程序号")
    private String sequenceNumber;
    /**
     * beltLine
     */
    @Excel(name = "beltLine", width = 15)
    @ApiModelProperty(value = "beltLine")
    private String beltLine;
    /**
     * å¼€å§‹æ—¶é—´
     */
    @Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;
    /**
     * ç»“束时间
     */
    @Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
    /**
     * å¼€å§‹æ—¶é—´æˆ³
     */
    @Excel(name = "开始时间戳", width = 15)
    @ApiModelProperty(value = "开始时间戳")
    private Long startLong;
    /**
     * ç»“束时间戳
     */
    @Excel(name = "结束时间戳", width = 15)
    @ApiModelProperty(value = "结束时间戳")
    private Long endLong;
    /**
     * å…³è”报警信息
     */
    @TableField(exist = false)
    private Set<TmpEquipmentAlarm> tmpEquipmentAlarmSet;
    public MdcEquipmentRunningSection() {
    }
    public MdcEquipmentRunningSection(Integer status, String equipmentId, Date startTime, Date endTime, Long startLong, Long endLong) {
        this.status = status;
        this.equipmentId = equipmentId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.startLong = startLong;
        this.endLong = endLong;
    }
}