package com.zy.asrs.entity;
|
|
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import com.core.common.SpringUtils;
|
import com.zy.system.service.UserService;
|
import com.zy.system.entity.User;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_bas_lift")
|
public class BasLift implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 提升机号
|
*/
|
@ApiModelProperty(value= "提升机号")
|
@TableId(value = "lift_no", type = IdType.INPUT)
|
@TableField("lift_no")
|
private Integer liftNo;
|
|
/**
|
* 当前任务状态
|
*/
|
@ApiModelProperty(value= "当前任务状态")
|
private Integer status;
|
|
/**
|
* 任务号
|
*/
|
@ApiModelProperty(value= "任务号")
|
@TableField("wrk_no")
|
private Integer wrkNo;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("update_by")
|
private Long updateBy;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
/**
|
* 作业标记
|
*/
|
@ApiModelProperty(value= "作业标记")
|
@TableField("pak_mk")
|
private Integer pakMk;
|
|
/**
|
* 提升机坐标
|
*/
|
@ApiModelProperty(value= "提升机坐标")
|
@TableField("point")
|
private String point;
|
|
/**
|
* 模式
|
*/
|
@ApiModelProperty(value= "模式")
|
@TableField("model")
|
private Boolean model;
|
|
/**
|
* 忙闲
|
*/
|
@ApiModelProperty(value= "忙闲")
|
@TableField("busy")
|
private Boolean busy;
|
|
/**
|
* 前超限
|
*/
|
@ApiModelProperty(value= "前超限")
|
@TableField("front_overrun")
|
private Boolean frontOverrun;
|
|
/**
|
* 后超限
|
*/
|
@ApiModelProperty(value= "后超限")
|
@TableField("back_overrun")
|
private Boolean backOverrun;
|
|
/**
|
* 左超限
|
*/
|
@ApiModelProperty(value= "左超限")
|
@TableField("left_overrun")
|
private Boolean leftOverrun;
|
|
/**
|
* 右超限
|
*/
|
@ApiModelProperty(value= "右超限")
|
@TableField("right_overrun")
|
private Boolean rightOverrun;
|
|
/**
|
* 超高
|
*/
|
@ApiModelProperty(value= "超高")
|
@TableField("over_height")
|
private Boolean overHeight;
|
|
/**
|
* 超重
|
*/
|
@ApiModelProperty(value= "超重")
|
@TableField("over_weight")
|
private Boolean overWeight;
|
|
/**
|
* 有托盘
|
*/
|
@ApiModelProperty(value= "有托盘")
|
@TableField("has_tray")
|
private Boolean hasTray;
|
|
/**
|
* 有小车
|
*/
|
@ApiModelProperty(value= "有小车")
|
@TableField("has_car")
|
private Boolean hasCar;
|
|
/**
|
* 设备故障
|
*/
|
@ApiModelProperty(value= "设备故障")
|
@TableField("device_error")
|
private Boolean deviceError;
|
|
/**
|
* 任务地址
|
*/
|
@ApiModelProperty(value= "任务地址")
|
@TableField("task_address")
|
private Integer taskAddress;
|
|
/**
|
* 目的地址
|
*/
|
@ApiModelProperty(value= "目的地址")
|
@TableField("dist_address")
|
private Integer distAddress;
|
|
/**
|
* 已完成任务号
|
*/
|
@ApiModelProperty(value= "已完成任务号")
|
@TableField("complete_task_no")
|
private Integer completeTaskNo;
|
|
/**
|
* 楼层
|
*/
|
@ApiModelProperty(value= "楼层")
|
@TableField("lev")
|
private Integer lev;
|
|
public BasLift() {}
|
|
public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Integer pakMk, String point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) {
|
this.liftNo = liftNo;
|
this.status = status;
|
this.wrkNo = wrkNo;
|
this.updateTime = updateTime;
|
this.updateBy = updateBy;
|
this.memo = memo;
|
this.pakMk = pakMk;
|
this.point = point;
|
this.model = model;
|
this.busy = busy;
|
this.frontOverrun = frontOverrun;
|
this.backOverrun = backOverrun;
|
this.leftOverrun = leftOverrun;
|
this.rightOverrun = rightOverrun;
|
this.overHeight = overHeight;
|
this.overWeight = overWeight;
|
this.hasTray = hasTray;
|
this.hasCar = hasCar;
|
this.deviceError = deviceError;
|
this.taskAddress = taskAddress;
|
this.distAddress = distAddress;
|
this.completeTaskNo = completeTaskNo;
|
this.lev = lev;
|
}
|
|
// BasLift basLift = new BasLift(
|
// null, // 提升机号[非空]
|
// null, // 当前任务状态
|
// null, // 任务号
|
// null, // 修改时间
|
// null, // 修改人员
|
// null, // 备注
|
// null, // 作业标记
|
// null, // 提升机锁定
|
// null, // 位置到达反馈
|
// null, // 准备就绪
|
// null, // 运行中
|
// null, // 联机/单机
|
// null, // 输送线前端光电有货
|
// null, // 输送线正转反馈
|
// null, // 输送线反转反馈
|
// null, // 输送线电机过载
|
// null, // 输送线末端光电有货
|
// null, // 进输送线卡托盘报警
|
// null, // 出输送线卡托盘报警
|
// null, // 平台位置偏差报警
|
// null, // 平台扭矩偏差报警
|
// null, // 平台四向车检测
|
// null, // 未就绪状态
|
// null, // 伺服1错误
|
// null, // 伺服2错误
|
// null, // 伺服3错误
|
// null, // 伺服4错误
|
// null // 提升机实际速度反馈
|
// );
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
public String getUpdateBy$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.updateBy);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getPakMk$() {
|
if (Cools.isEmpty(this.pakMk)){
|
return "";
|
}
|
return this.pakMk == 1 ? "Y" : "N";
|
}
|
|
}
|