自动化立体仓库 - WCS系统
#
zjj
2024-04-25 5a3218fc35dd3e949bb017c77839aedda8c528c8
src/main/java/com/zy/asrs/entity/BasRgvOpt.java
@@ -1,13 +1,16 @@
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 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 java.text.SimpleDateFormat;
import java.util.Date;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -20,115 +23,93 @@
    private static final long serialVersionUID = 1L;
    /**
     * 任务号
     */
    @ApiModelProperty(value= "任务号")
    @TableField("wrk_no1")
    private Integer wrkNo1;
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    @TableField("wrk_no2")
    private Integer wrkNo2;
    /**
     * RGV编号
     * 穿梭车
     */
    @ApiModelProperty(value= "RGV编号")
    @ApiModelProperty(value= "穿梭车")
    @TableField("rgv_no")
    private Integer rgvNo;
    /**
     * 任务完成确认位
     * 下发时间
     */
    @ApiModelProperty(value= "任务完成确认位")
    @TableField("ack_finish")
    private Integer ackFinish;
    /**
     * 工位1工作号
     */
    @ApiModelProperty(value= "工位1工作号")
    @TableField("task_no1")
    private Integer taskNo1;
    /**
     * 工位1模式
     */
    @ApiModelProperty(value= "工位1模式")
    @TableField("task_mode1")
    private Integer taskMode1;
    /**
     * 工位1源站
     */
    @ApiModelProperty(value= "工位1源站")
    @TableField("source_sta_no1")
    private Integer sourceStaNo1;
    /**
     * 工位1目标站
     */
    @ApiModelProperty(value= "工位1目标站")
    @TableField("destination_sta_no_1")
    private Integer destinationStaNo1;
    /**
     * 工位2工作号
     */
    @ApiModelProperty(value= "工位2工作号")
    @TableField("task_no2")
    private Integer taskNo2;
    /**
     * 工位2模式
     */
    @ApiModelProperty(value= "工位2模式")
    @TableField("task_mode2")
    private Integer taskMode2;
    /**
     * 工位2源站
     */
    @ApiModelProperty(value= "工位2源站")
    @TableField("source_sta_no2")
    private Integer sourceStaNo2;
    /**
     * 工位2目标站
     */
    @ApiModelProperty(value= "工位2目标站")
    @TableField("destination_sta_no2")
    private Integer destinationStaNo2;
    /**
     * 任务确认
     */
    @ApiModelProperty(value= "任务确认")
    private Integer command;
    /**
     * 创建时间
     */
    @ApiModelProperty(value= "创建时间")
    @TableField("create_time")
    @ApiModelProperty(value= "下发时间")
    @TableField("send_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Date sendTime;
    /**
     * 创建人员
     * 作业
     */
    @ApiModelProperty(value= "创建人员")
    @TableField("create_by")
    private Long createBy;
    @ApiModelProperty(value= "作业")
    private String mode;
    /**
     * 更新时间
     * 源排
     */
    @ApiModelProperty(value= "更新时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value= "源排")
    @TableField("source_row")
    private Integer sourceRow;
    /**
     * 更新人员
     * 源列
     */
    @ApiModelProperty(value= "更新人员")
    @TableField("update_by")
    private Long updateBy;
    @ApiModelProperty(value= "源列")
    @TableField("source_bay")
    private Integer sourceBay;
    /**
     * 源层
     */
    @ApiModelProperty(value= "源层")
    @TableField("source_lev")
    private Integer sourceLev;
    /**
     * 源站
     */
    @ApiModelProperty(value= "源站")
    @TableField("source_sta")
    private Integer sourceSta;
    /**
     * 目标排
     */
    @ApiModelProperty(value= "目标排")
    @TableField("pos_row")
    private Integer posRow;
    /**
     * 目标列
     */
    @ApiModelProperty(value= "目标列")
    @TableField("pos_bay")
    private Integer posBay;
    /**
     * 目标层
     */
    @ApiModelProperty(value= "目标层")
    @TableField("pos_lev")
    private Integer posLev;
    /**
     * 目标站
     */
    @ApiModelProperty(value= "目标站")
    @TableField("pos_sta")
    private Integer posSta;
    /**
     * 响应结果 1: 正常  0: 失败  
@@ -136,59 +117,79 @@
    @ApiModelProperty(value= "响应结果 1: 正常  0: 失败  ")
    private Integer response;
    /**
     * 修改时间
     */
    @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= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    public BasRgvOpt() {}
    public BasRgvOpt(Integer rgvNo,Integer ackFinish,Integer taskNo1,Integer taskMode1,Integer sourceStaNo1,Integer destinationStaNo1,Integer taskNo2,Integer taskMode2,Integer sourceStaNo2,Integer destinationStaNo2,Integer command,Date createTime,Long createBy,Date updateTime,Long updateBy,Integer response) {
    public BasRgvOpt(Integer wrkNo1,Integer wrkNo2,Integer rgvNo,Date sendTime,String mode,Integer sourceRow,Integer sourceBay,Integer sourceLev,Integer sourceSta,Integer posRow,Integer posBay,Integer posLev,Integer posSta,Integer response,Date updateTime,Long updateBy,String memo) {
        this.wrkNo1 = wrkNo1;
        this.wrkNo2 = wrkNo2;
        this.rgvNo = rgvNo;
        this.ackFinish = ackFinish;
        this.taskNo1 = taskNo1;
        this.taskMode1 = taskMode1;
        this.sourceStaNo1 = sourceStaNo1;
        this.destinationStaNo1 = destinationStaNo1;
        this.taskNo2 = taskNo2;
        this.taskMode2 = taskMode2;
        this.sourceStaNo2 = sourceStaNo2;
        this.destinationStaNo2 = destinationStaNo2;
        this.command = command;
        this.createTime = createTime;
        this.createBy = createBy;
        this.sendTime = sendTime;
        this.mode = mode;
        this.sourceRow = sourceRow;
        this.sourceBay = sourceBay;
        this.sourceLev = sourceLev;
        this.sourceSta = sourceSta;
        this.posRow = posRow;
        this.posBay = posBay;
        this.posLev = posLev;
        this.posSta = posSta;
        this.response = response;
        this.updateTime = updateTime;
        this.updateBy = updateBy;
        this.response = response;
        this.memo = memo;
    }
//    BasRgvOpt basRgvOpt = new BasRgvOpt(
//            null,    // [非空]
//            null,    // RGV编号
//            null,    // 任务完成确认位
//            null,    // 工位1工作号
//            null,    // 工位1模式
//            null,    // 工位1源站
//            null,    // 工位1目标站
//            null,    // 工位2工作号
//            null,    // 工位2模式
//            null,    // 工位2源站
//            null,    // 工位2目标站
//            null,    // 任务确认
//            null,    // 创建时间
//            null,    // 创建人员
//            null,    // 更新时间
//            null,    // 更新人员
//            null    // 响应结果
//            null,    // 任务号
//            null,    //
//            null,    // 穿梭车
//            null,    // 下发时间
//            null,    // 作业
//            null,    // 源排
//            null,    // 源列
//            null,    // 源层
//            null,    // 源站
//            null,    // 目标排
//            null,    // 目标列
//            null,    // 目标层
//            null,    // 目标站
//            null,    // 响应结果
//            null,    // 修改时间
//            null,    // 修改人员
//            null,    // 备注
//    );
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
    public String getSendTime$(){
        if (Cools.isEmpty(this.sendTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime);
    }
    public String getResponse$(){
@@ -203,5 +204,21 @@
        }
    }
    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.getUsername());
        }
        return null;
    }
}