package com.zy.asrs.entity; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.enums.IdType; import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; @Data @TableName("asr_bas_devp_error_log") public class BasDevpErrorLog implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value= "") @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 输送编号 */ @ApiModelProperty(value= "输送编号") @TableField("dev_no") private Integer devNo; /** * 物体进/出超时 */ @ApiModelProperty(value= "物体进/出超时") @TableField("pass_time_out") private String passTimeOut; /** * 有物体无数据 */ @ApiModelProperty(value= "有物体无数据") @TableField("object_no_id_error") private String objectNoIdError; /** * 有数据无物体 */ @ApiModelProperty(value= "有数据无物体") @TableField("id_no_object_error") private String idNoObjectError; /** * 线体电机热继报警 */ @ApiModelProperty(value= "线体电机热继报警") @TableField("lmfr_error") private String lmfrError; /** * 顶升报警 */ @ApiModelProperty(value= "顶升报警") @TableField("lift_error") private String liftError; /** * 顶升电机热继报警 */ @ApiModelProperty(value= "顶升电机热继报警") @TableField("dlfr_error") private String dlfrError; /** * 顶升横移电机热继报警 */ @ApiModelProperty(value= "顶升横移电机热继报警") @TableField("dmfr_error") private String dmfrError; /** * 变频故障 */ @ApiModelProperty(value= "变频故障") @TableField("vfd_error") private String vfdError; /** * 伺服故障 */ @ApiModelProperty(value= "伺服故障") @TableField("srv_error") private String srvError; /** * 预留1 */ @ApiModelProperty(value= "预留1") private String res1; /** * 预留2 */ @ApiModelProperty(value= "预留2") private String res2; /** * 预留3 */ @ApiModelProperty(value= "预留3") private String res3; /** * 与上位机通讯超时 */ @ApiModelProperty(value= "与上位机通讯超时") @TableField("communication_time_out") private String communicationTimeOut; /** * 信息参数不全 */ @ApiModelProperty(value= "信息参数不全") @TableField("parameter_incomplete_error") private String parameterIncompleteError; /** * 信息数据未清除 */ @ApiModelProperty(value= "信息数据未清除") @TableField("data_not_clear") private String dataNotClear; /** * 参数设置报警 */ @ApiModelProperty(value= "参数设置报警") @TableField("set_parameter_error") private String setParameterError; /** * 创建时间 */ @ApiModelProperty(value= "创建时间") @TableField("create_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date createTime; @ApiModelProperty(value= "") @TableField("in_enable") private String inEnable; @ApiModelProperty(value= "") @TableField("out_enable") private String outEnable; @ApiModelProperty(value= "") @TableField("data_error") private String dataError; public BasDevpErrorLog() {} public BasDevpErrorLog(Integer devNo,String passTimeOut,String objectNoIdError,String idNoObjectError,String lmfrError,String liftError,String dlfrError,String dmfrError,String vfdError,String srvError,String res1,String res2,String res3,String communicationTimeOut,String parameterIncompleteError,String dataNotClear,String setParameterError,Date createTime,String inEnable,String outEnable,String dataError) { this.devNo = devNo; this.passTimeOut = passTimeOut; this.objectNoIdError = objectNoIdError; this.idNoObjectError = idNoObjectError; this.lmfrError = lmfrError; this.liftError = liftError; this.dlfrError = dlfrError; this.dmfrError = dmfrError; this.vfdError = vfdError; this.srvError = srvError; this.res1 = res1; this.res2 = res2; this.res3 = res3; this.communicationTimeOut = communicationTimeOut; this.parameterIncompleteError = parameterIncompleteError; this.dataNotClear = dataNotClear; this.setParameterError = setParameterError; this.createTime = createTime; this.inEnable = inEnable; this.outEnable = outEnable; this.dataError = dataError; } // BasDevpErrorLog basDevpErrorLog = new BasDevpErrorLog( // null, // 输送编号 // null, // 物体进/出超时 // null, // 有物体无数据 // null, // 有数据无物体 // null, // 线体电机热继报警 // null, // 顶升报警 // null, // 顶升电机热继报警 // null, // 顶升横移电机热继报警 // null, // 变频故障 // null, // 伺服故障 // null, // 预留1 // null, // 预留2 // null, // 预留3 // null, // 与上位机通讯超时 // null, // 信息参数不全 // null, // 信息数据未清除 // null, // 参数设置报警 // null, // 创建时间 // null, // // null, // // null // // ); public String getCreateTime$(){ if (Cools.isEmpty(this.createTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } }