#
Junjie
6 天以前 3c45d4f9f3aba5bc85a9577e43c0dffc71b93a22
src/main/java/com/zy/asrs/entity/BasLift.java
@@ -5,9 +5,10 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import com.zy.core.model.protocol.NyShuttleProtocol;
import com.zy.core.model.LiftStation;
import org.springframework.format.annotation.DateTimeFormat;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
@@ -17,6 +18,7 @@
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;
@Data
@TableName("asr_bas_lift")
@@ -75,6 +77,13 @@
    private Boolean pakMk;
    /**
     * 设备状态
     */
    @ApiModelProperty(value= "设备状态")
    @TableField("device_status")
    private String deviceStatus;
    /**
     * 提升机坐标
     */
    @ApiModelProperty(value= "提升机坐标")
@@ -82,113 +91,15 @@
    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;
    @ApiModelProperty(value= "提升机站点")
    @TableField("station_list")
    private String stationList;
    public BasLift() {}
    public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean 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) {
    public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, String deviceStatus) {
        this.liftNo = liftNo;
        this.status = status;
        this.wrkNo = wrkNo;
@@ -196,22 +107,7 @@
        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;
        this.deviceStatus = deviceStatus;
    }
    public String getUpdateTime$(){
@@ -230,12 +126,15 @@
        return null;
    }
    public NyShuttleProtocol.NyShuttlePointClass getPoint$() {
        if (Cools.isEmpty(this.point)){
            return null;
    public List<LiftStation> getStationList$(){
        List<LiftStation> list = new ArrayList<>();
        if (Cools.isEmpty(this.stationList)){
            return list;
        }
        return JSON.parseObject(this.point, NyShuttleProtocol.NyShuttlePointClass.class);
    }
        List<LiftStation> liftStations = JSON.parseArray(stationList, LiftStation.class);
        list.addAll(liftStations);
        return list;
    }
}