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 io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_bas_rgv_opt")
|
public class BasRgvOpt implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value= "")
|
@TableId(value = "id", type = IdType.INPUT)
|
private Long id;
|
|
/**
|
* RGV编号
|
*/
|
@ApiModelProperty(value= "RGV编号")
|
@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")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 创建人员
|
*/
|
@ApiModelProperty(value= "创建人员")
|
@TableField("create_by")
|
private Long createBy;
|
|
/**
|
* 更新时间
|
*/
|
@ApiModelProperty(value= "更新时间")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 更新人员
|
*/
|
@ApiModelProperty(value= "更新人员")
|
@TableField("update_by")
|
private Long updateBy;
|
|
/**
|
* 响应结果 1: 正常 0: 失败
|
*/
|
@ApiModelProperty(value= "响应结果 1: 正常 0: 失败 ")
|
private Integer response;
|
|
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) {
|
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.updateTime = updateTime;
|
this.updateBy = updateBy;
|
this.response = response;
|
}
|
|
// 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 // 响应结果
|
// );
|
|
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 getResponse$(){
|
if (null == this.response){ return null; }
|
switch (this.response){
|
case 1:
|
return "正常";
|
case 0:
|
return "失败";
|
default:
|
return String.valueOf(this.response);
|
}
|
}
|
|
|
}
|