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 java.text.SimpleDateFormat;
|
import java.util.Date;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_wrk_mast_split_twin")
|
public class WrkMastSplitTwin implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 工作号
|
*/
|
@ApiModelProperty(value= "工作号")
|
@TableField("wrk_no")
|
private Long wrkNo;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("create_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 工位
|
*/
|
@ApiModelProperty(value= "工位")
|
private Integer type;
|
|
/**
|
* 工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成
|
*/
|
@ApiModelProperty(value= "工作状态 0: 初始 1: 等待取货完成 2: 取货完成待作业 3: 等待放货完成 4: 完成 ")
|
@TableField("wrk_sts")
|
private Integer wrkSts;
|
|
/**
|
* 行号
|
*/
|
@ApiModelProperty(value= "行号")
|
@TableField("line_number")
|
private Integer lineNumber;
|
|
/**
|
* 工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成
|
*/
|
@ApiModelProperty(value= "工作类型 0: 未知 1: 取 2: 放 3: 取放 4: 完成 ")
|
@TableField("wrk_type")
|
private Integer wrkType;
|
|
/**
|
* 标记时间
|
*/
|
@ApiModelProperty(value= "标记时间")
|
@TableField("bign_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date bignTime;
|
|
/**
|
* 堆垛机号
|
*/
|
@ApiModelProperty(value= "堆垛机号")
|
@TableField("crn_no")
|
private Integer crnNo;
|
|
/**
|
* 起点
|
*/
|
@ApiModelProperty(value= "起点")
|
@TableField("wrk_start")
|
private String wrkStart;
|
|
/**
|
* 终点
|
*/
|
@ApiModelProperty(value= "终点")
|
@TableField("wrk_end")
|
private String wrkEnd;
|
|
/**
|
* 起点排
|
*/
|
@ApiModelProperty(value= "起点排")
|
@TableField("start_row")
|
private Integer startRow;
|
|
/**
|
* 起点列
|
*/
|
@ApiModelProperty(value= "起点列")
|
@TableField("start_bay")
|
private Integer startBay;
|
|
/**
|
* 起点层
|
*/
|
@ApiModelProperty(value= "起点层")
|
@TableField("start_lev")
|
private Integer startLev;
|
|
/**
|
* 终点排
|
*/
|
@ApiModelProperty(value= "终点排")
|
@TableField("end_row")
|
private Integer endRow;
|
|
/**
|
* 终点列
|
*/
|
@ApiModelProperty(value= "终点列")
|
@TableField("end_bay")
|
private Integer endBay;
|
|
/**
|
* 终点层
|
*/
|
@ApiModelProperty(value= "终点层")
|
@TableField("end_lev")
|
private Integer endLev;
|
|
/**
|
* 任务类型 0: 未知 1: 入库 2: 出库
|
*/
|
@ApiModelProperty(value= "任务类型 0: 未知 1: 入库 2: 出库 ")
|
@TableField("io_type")
|
private Integer ioType;
|
|
public WrkMastSplitTwin() {}
|
|
public WrkMastSplitTwin(WrkMast wrkMast,Integer crnStation,Date now) {
|
this.wrkNo = wrkMast.getWrkNo().longValue();
|
this.createTime = now;
|
this.updateTime = now;
|
this.type = crnStation; //工位
|
this.lineNumber = wrkMast.getIoPri().intValue();
|
this.bignTime = wrkMast.getIoTime();
|
this.crnNo = wrkMast.getCrnNo();
|
}
|
|
public WrkMastSplitTwin(Long wrkNo,Date createTime,Date updateTime,Integer type,Integer wrkSts,Integer lineNumber,Integer wrkType,Date bignTime,Integer crnNo,String wrkStart,String wrkEnd,Integer startRow,Integer startBay,Integer startLev,Integer endRow,Integer endBay,Integer endLev,Integer ioType) {
|
this.wrkNo = wrkNo;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.type = type;
|
this.wrkSts = wrkSts;
|
this.lineNumber = lineNumber;
|
this.wrkType = wrkType;
|
this.bignTime = bignTime;
|
this.crnNo = crnNo;
|
this.wrkStart = wrkStart;
|
this.wrkEnd = wrkEnd;
|
this.startRow = startRow;
|
this.startBay = startBay;
|
this.startLev = startLev;
|
this.endRow = endRow;
|
this.endBay = endBay;
|
this.endLev = endLev;
|
this.ioType = ioType;
|
}
|
|
// WrkMastSplitTwin wrkMastSplitTwin = new WrkMastSplitTwin(
|
// 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)){
|
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);
|
}
|
|
public String getWrkSts$(){
|
if (null == this.wrkSts){ return null; }
|
switch (this.wrkSts){
|
case 0:
|
return "初始";
|
case 1:
|
return "等待取货完成";
|
case 2:
|
return "取货完成待作业";
|
case 3:
|
return "等待放货完成";
|
case 4:
|
return "完成";
|
default:
|
return String.valueOf(this.wrkSts);
|
}
|
}
|
|
public String getWrkType$(){
|
if (null == this.wrkType){ return null; }
|
switch (this.wrkType){
|
case 0:
|
return "未知";
|
case 1:
|
return "取";
|
case 2:
|
return "放";
|
case 3:
|
return "取放";
|
case 4:
|
return "完成";
|
default:
|
return String.valueOf(this.wrkType);
|
}
|
}
|
|
public String getBignTime$(){
|
if (Cools.isEmpty(this.bignTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.bignTime);
|
}
|
|
public String getIoType$(){
|
if (null == this.ioType){ return null; }
|
switch (this.ioType){
|
case 0:
|
return "未知";
|
case 1:
|
return "入库";
|
case 2:
|
return "出库";
|
default:
|
return String.valueOf(this.ioType);
|
}
|
}
|
|
|
}
|