package com.zy.asrs.entity; 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 com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.enums.IdType; 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= "输送编号") @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; @ApiModelProperty(value= "") @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 直线光电 */ @ApiModelProperty(value= "直线光电") @TableField("sensorG_arrive") private String sensorGArrive; /** * 减速光电 */ @ApiModelProperty(value= "减速光电") @TableField("sensorG_dec") private String sensorGDec; /** * 直线凸出 */ @ApiModelProperty(value= "直线凸出") @TableField("sensorG_arrive2") private String sensorGArrive2; /** * 限位保护光电 */ @ApiModelProperty(value= "限位保护光电") @TableField("sensor_limit") private String sensorLimit; /** * 急停 */ @ApiModelProperty(value= "急停") private String emergency; /** * 光电离开1 */ @ApiModelProperty(value= "光电离开1") @TableField("sensorG_leave") private String sensorGLeave; /** * 光电离开2 */ @ApiModelProperty(value= "光电离开2") @TableField("sensorG_leave2") private String sensorGLeave2; /** * 顶升上升 */ @ApiModelProperty(value= "顶升上升") @TableField("sensorC_up") private String sensorCUp; /** * 顶升下降 */ @ApiModelProperty(value= "顶升下降") @TableField("sensorC_down") private String sensorCDown; /** * 顶升热继 */ @ApiModelProperty(value= "顶升热继") @TableField("lift_motor_fr") private String liftMotorFr; /** * 直线热继 */ @ApiModelProperty(value= "直线热继") @TableField("line_motor_fr") private String lineMotorFr; /** * 移栽热继 */ @ApiModelProperty(value= "移栽热继") @TableField("tran_motor_fr") private String tranMotorFr; /** * 备用1 */ @ApiModelProperty(value= "备用1") private String rst1; /** * 备用2 */ @ApiModelProperty(value= "备用2") private String rst2; /** * 备用3 */ @ApiModelProperty(value= "备用3") private String rst3; /** * 备用4 */ @ApiModelProperty(value= "备用4") private String rst4; /** * 直行方向到位 */ @ApiModelProperty(value= "直行方向到位") @TableField("sensor_arrive_d") private String sensorArriveD; /** * 直行方向减速 */ @ApiModelProperty(value= "直行方向减速") @TableField("sensor_dec_d") private String sensorDecD; /** * 左移方向到位 */ @ApiModelProperty(value= "左移方向到位") @TableField("sensor_arrive_l") private String sensorArriveL; /** * 左移方向减速 */ @ApiModelProperty(value= "左移方向减速") @TableField("sensor_dec_l") private String sensorDecL; /** * 右移方向到位 */ @ApiModelProperty(value= "右移方向到位") @TableField("sensor_arrive_r") private String sensorArriveR; /** * 右移方向减速 */ @ApiModelProperty(value= "右移方向减速") @TableField("sensor_dec_r") private String sensorDecR; 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,String sensorGArrive,String sensorGDec,String sensorGArrive2,String sensorLimit,String emergency,String sensorGLeave,String sensorGLeave2,String sensorCUp,String sensorCDown,String liftMotorFr,String lineMotorFr,String tranMotorFr,String rst1,String rst2,String rst3,String rst4,String sensorArriveD,String sensorDecD,String sensorArriveL,String sensorDecL,String sensorArriveR,String sensorDecR) { 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; this.sensorGArrive = sensorGArrive; this.sensorGDec = sensorGDec; this.sensorGArrive2 = sensorGArrive2; this.sensorLimit = sensorLimit; this.emergency = emergency; this.sensorGLeave = sensorGLeave; this.sensorGLeave2 = sensorGLeave2; this.sensorCUp = sensorCUp; this.sensorCDown = sensorCDown; this.liftMotorFr = liftMotorFr; this.lineMotorFr = lineMotorFr; this.tranMotorFr = tranMotorFr; this.rst1 = rst1; this.rst2 = rst2; this.rst3 = rst3; this.rst4 = rst4; this.sensorArriveD = sensorArriveD; this.sensorDecD = sensorDecD; this.sensorArriveL = sensorArriveL; this.sensorDecL = sensorDecL; this.sensorArriveR = sensorArriveR; this.sensorDecR = sensorDecR; } // 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, // 数据错误 // null, // 直线光电 // null, // 减速光电 // null, // 直线凸出 // null, // 限位保护光电 // null, // 急停 // null, // 光电离开1 // null, // 光电离开2 // null, // 顶升上升 // null, // 顶升下降 // null, // 顶升热继 // null, // 直线热继 // null, // 移栽热继 // null, // 备用1 // null, // 备用2 // null, // 备用3 // null, // 备用4 // 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); } }