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_rgv_error_log") public class BasRgvErrorLog implements Serializable { private static final long serialVersionUID = 1L; /** * 编号 */ @ApiModelProperty(value= "编号") @TableField("rgv_no") private Integer rgvNo; /** * 急停触发 */ @ApiModelProperty(value= "急停触发") @TableField("emergency_stop") private String emergencyStop; /** * 1号位有物无资料 */ @ApiModelProperty(value= "1号位有物无资料") @TableField("slot_1_empty_no_data") private String slot1EmptyNoData; /** * 2号位有物无资料 */ @ApiModelProperty(value= "2号位有物无资料") @TableField("slot_2_empty_no_data") private String slot2EmptyNoData; /** * 命令错误走链条冲突 */ @ApiModelProperty(value= "命令错误走链条冲突") @TableField("command_error_chain_conflict") private String commandErrorChainConflict; /** * 目标位下发错误 */ @ApiModelProperty(value= "目标位下发错误") @TableField("target_position_issue") private String targetPositionIssue; /** * 走行变频器异常 */ @ApiModelProperty(value= "走行变频器异常") @TableField("travel_inverter_error") private String travelInverterError; /** * 1号光电异常 */ @ApiModelProperty(value= "1号光电异常") @TableField("photoelectric_1_error") private String photoelectric1Error; /** * 2号光电异常 */ @ApiModelProperty(value= "2号光电异常") @TableField("photoelectric_2_error") private String photoelectric2Error; /** * 与输线时接超时 */ @ApiModelProperty(value= "与输线时接超时") @TableField("timeout_connection_with_line") private String timeoutConnectionWithLine; /** * 左侧滚筒运行超时 */ @ApiModelProperty(value= "左侧滚筒运行超时") @TableField("left_roller_timeout") private String leftRollerTimeout; /** * 右侧滚筒运行超时 */ @ApiModelProperty(value= "右侧滚筒运行超时") @TableField("right_roller_timeout") private String rightRollerTimeout; /** * rgv运行超时 */ @ApiModelProperty(value= "rgv运行超时") @TableField("rgv_run_timeout") private String rgvRunTimeout; /** * 1号工位链条变频器异常 */ @ApiModelProperty(value= "1号工位链条变频器异常") @TableField("position_1_chain_inverter_error") private String position1ChainInverterError; /** * 2号工位链条变频器异常 */ @ApiModelProperty(value= "2号工位链条变频器异常") @TableField("position_2_chain_inverter_error") private String position2ChainInverterError; /** * 前后极限位 */ @ApiModelProperty(value= "前后极限位") @TableField("front_rear_limit") private String frontRearLimit; /** * 急停按钮 */ @ApiModelProperty(value= "急停按钮") @TableField("emergency_button") private String emergencyButton; /** * 创建时间 */ @ApiModelProperty(value= "创建时间") @TableField("create_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date createTime; /** * 急停按钮 */ @ApiModelProperty(value= "急停按钮") @TableField("forward_button") private String forwardButton; /** * 后退按钮 */ @ApiModelProperty(value= "后退按钮") @TableField("reverse_button") private String reverseButton; /** * 本地/远程 */ @ApiModelProperty(value= "本地/远程") @TableField("local_remote") private String localRemote; @ApiModelProperty(value= "") @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 复位 */ @ApiModelProperty(value= "复位") private String reset; /** * 走行抱闸开关钮 */ @ApiModelProperty(value= "走行抱闸开关钮") @TableField("travel_brake_switch") private String travelBrakeSwitch; /** * 走行强制减速光电 */ @ApiModelProperty(value= "走行强制减速光电") @TableField("travel_speed_limit_photoelectric") private String travelSpeedLimitPhotoelectric; /** * 左超限 1 */ @ApiModelProperty(value= "左超限 1") @TableField("left_overlimit_1") private String leftOverlimit1; /** * 右超限 1 */ @ApiModelProperty(value= "右超限 1") @TableField("right_overlimit_1") private String rightOverlimit1; /** * 左到位 1 */ @ApiModelProperty(value= "左到位 1") @TableField("left_at_position_1") private String leftAtPosition1; /** * 右到位 1 */ @ApiModelProperty(value= "右到位 1") @TableField("right_at_position_1") private String rightAtPosition1; /** * 链条前进 1 */ @ApiModelProperty(value= "链条前进 1") @TableField("chain_forward_1") private String chainForward1; /** * 链条后退 1 */ @ApiModelProperty(value= "链条后退 1") @TableField("chain_reverse_1") private String chainReverse1; /** * 变频器报警 */ @ApiModelProperty(value= "变频器报警") @TableField("inverter_alarm") private String inverterAlarm; /** * 左超限 2 */ @ApiModelProperty(value= "左超限 2") @TableField("left_overlimit_2") private String leftOverlimit2; /** * 右超限 2 */ @ApiModelProperty(value= "右超限 2") @TableField("right_overlimit_2") private String rightOverlimit2; /** * 左到位 2 */ @ApiModelProperty(value= "左到位 2") @TableField("left_at_position_2") private String leftAtPosition2; /** * 右到位 2 */ @ApiModelProperty(value= "右到位 2") @TableField("right_at_position_2") private String rightAtPosition2; /** * 货物减速 */ @ApiModelProperty(value= "货物减速") @TableField("cargo_speed_reduction") private String cargoSpeedReduction; /** * 输送变频器报警 2 */ @ApiModelProperty(value= "输送变频器报警 2") @TableField("conveyor_inverter_alarm_2") private String conveyorInverterAlarm2; /** * 左输送 2 */ @ApiModelProperty(value= "左输送 2") @TableField("left_conveyor_2") private String leftConveyor2; /** * 右输送 2 */ @ApiModelProperty(value= "右输送 2") @TableField("right_conveyor_2") private String rightConveyor2; public BasRgvErrorLog() {} public BasRgvErrorLog(Integer rgvNo,String emergencyStop,String slot1EmptyNoData,String slot2EmptyNoData,String commandErrorChainConflict,String targetPositionIssue,String travelInverterError,String photoelectric1Error,String photoelectric2Error,String timeoutConnectionWithLine,String leftRollerTimeout,String rightRollerTimeout,String rgvRunTimeout,String position1ChainInverterError,String position2ChainInverterError,String frontRearLimit,String emergencyButton,Date createTime,String forwardButton,String reverseButton,String localRemote,String reset,String travelBrakeSwitch,String travelSpeedLimitPhotoelectric,String leftOverlimit1,String rightOverlimit1,String leftAtPosition1,String rightAtPosition1,String chainForward1,String chainReverse1,String inverterAlarm,String leftOverlimit2,String rightOverlimit2,String leftAtPosition2,String rightAtPosition2,String cargoSpeedReduction,String conveyorInverterAlarm2,String leftConveyor2,String rightConveyor2) { this.rgvNo = rgvNo; this.emergencyStop = emergencyStop; this.slot1EmptyNoData = slot1EmptyNoData; this.slot2EmptyNoData = slot2EmptyNoData; this.commandErrorChainConflict = commandErrorChainConflict; this.targetPositionIssue = targetPositionIssue; this.travelInverterError = travelInverterError; this.photoelectric1Error = photoelectric1Error; this.photoelectric2Error = photoelectric2Error; this.timeoutConnectionWithLine = timeoutConnectionWithLine; this.leftRollerTimeout = leftRollerTimeout; this.rightRollerTimeout = rightRollerTimeout; this.rgvRunTimeout = rgvRunTimeout; this.position1ChainInverterError = position1ChainInverterError; this.position2ChainInverterError = position2ChainInverterError; this.frontRearLimit = frontRearLimit; this.emergencyButton = emergencyButton; this.createTime = createTime; this.forwardButton = forwardButton; this.reverseButton = reverseButton; this.localRemote = localRemote; this.reset = reset; this.travelBrakeSwitch = travelBrakeSwitch; this.travelSpeedLimitPhotoelectric = travelSpeedLimitPhotoelectric; this.leftOverlimit1 = leftOverlimit1; this.rightOverlimit1 = rightOverlimit1; this.leftAtPosition1 = leftAtPosition1; this.rightAtPosition1 = rightAtPosition1; this.chainForward1 = chainForward1; this.chainReverse1 = chainReverse1; this.inverterAlarm = inverterAlarm; this.leftOverlimit2 = leftOverlimit2; this.rightOverlimit2 = rightOverlimit2; this.leftAtPosition2 = leftAtPosition2; this.rightAtPosition2 = rightAtPosition2; this.cargoSpeedReduction = cargoSpeedReduction; this.conveyorInverterAlarm2 = conveyorInverterAlarm2; this.leftConveyor2 = leftConveyor2; this.rightConveyor2 = rightConveyor2; } // BasRgvErrorLog basRgvErrorLog = new BasRgvErrorLog( // null, // 编号 // null, // 急停触发 // null, // 1号位有物无资料 // null, // 2号位有物无资料 // null, // 命令错误走链条冲突 // null, // 目标位下发错误 // null, // 走行变频器异常 // null, // 1号光电异常 // null, // 2号光电异常 // null, // 与输线时接超时 // null, // 左侧滚筒运行超时 // null, // 右侧滚筒运行超时 // null, // rgv运行超时 // null, // 1号工位链条变频器异常 // null, // 2号工位链条变频器异常 // null, // 前后极限位 // null, // 急停按钮 // null, // 创建时间 // null, // 急停按钮 // null, // 后退按钮 // null, // 本地/远程 // null, // 复位 // null, // 走行抱闸开关钮 // null, // 走行强制减速光电 // null, // 左超限 1 // null, // 右超限 1 // null, // 左到位 1 // null, // 右到位 1 // null, // 链条前进 1 // null, // 链条后退 1 // null, // 变频器报警 // null, // 左超限 2 // null, // 右超限 2 // null, // 左到位 2 // null, // 右到位 2 // null, // 货物减速 // null, // 输送变频器报警 2 // null, // 左输送 2 // null // 右输送 2 // ); public String getCreateTime$(){ if (Cools.isEmpty(this.createTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } }