package com.zy.asrs.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_bas_jar")
|
public class BasJar implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* JAR编号
|
*/
|
@ApiModelProperty(value= "JAR编号")
|
@TableId(value = "jar_no", type = IdType.INPUT)
|
@TableField("jar_no")
|
private Integer jarNo;
|
|
/**
|
* 区域
|
*/
|
@ApiModelProperty(value= "区域")
|
private Integer region;
|
|
/**
|
* 代号
|
*/
|
@ApiModelProperty(value= "代号")
|
@TableField("jar_code")
|
private Integer jarCode;
|
|
/**
|
* 对应出库站
|
*/
|
@ApiModelProperty(value= "对应出库站")
|
@TableField("sta_no")
|
private Integer staNo;
|
|
/**
|
* 状态
|
*/
|
@ApiModelProperty(value= "状态")
|
@TableField("jar_status")
|
private Integer jarStatus;
|
|
/**
|
* 库存数
|
*/
|
@ApiModelProperty(value= "库存数")
|
@TableField("jar_count")
|
private Integer jarCount;
|
|
/**
|
* 异常代码
|
*/
|
@ApiModelProperty(value= "异常代码")
|
@TableField("jar_err")
|
private Integer jarErr;
|
|
/**
|
* 左门(checkBox)
|
*/
|
@ApiModelProperty(value= "左门(checkBox)")
|
@TableField("left_door")
|
private String leftDoor;
|
|
/**
|
* 右门(checkBox)
|
*/
|
@ApiModelProperty(value= "右门(checkBox)")
|
@TableField("right_door")
|
private String rightDoor;
|
|
/**
|
* 左门可开(checkBox)
|
*/
|
@ApiModelProperty(value= "左门可开(checkBox)")
|
@TableField("left_in_enable")
|
private String leftInEnable;
|
|
/**
|
* 左门可关(checkBox)
|
*/
|
@ApiModelProperty(value= "左门可关(checkBox)")
|
@TableField("left_out_enable")
|
private String leftOutEnable;
|
|
/**
|
* 自动(checkBox)
|
*/
|
@ApiModelProperty(value= "自动(checkBox)")
|
private String autoing;
|
|
/**
|
* 模式
|
*/
|
@ApiModelProperty(value= "模式")
|
@TableField("jar_mode")
|
private Integer jarMode;
|
|
/**
|
* 右门可开(checkBox)
|
*/
|
@ApiModelProperty(value= "右门可开(checkBox)")
|
@TableField("right_in_enable")
|
private String rightInEnable;
|
|
/**
|
* 右门可关(checkBox)
|
*/
|
@ApiModelProperty(value= "右门可关(checkBox)")
|
@TableField("right_out_enable")
|
private String rightOutEnable;
|
|
/**
|
* 入罐小车
|
*/
|
@ApiModelProperty(value= "入罐小车")
|
@TableField("enter_ste_no")
|
private Integer enterSteNo;
|
|
/**
|
* 出罐小车
|
*/
|
@ApiModelProperty(value= "出罐小车")
|
@TableField("out_ste_no")
|
private Integer outSteNo;
|
|
/**
|
* 入罐RGV
|
*/
|
@ApiModelProperty(value= "入罐RGV")
|
@TableField("enter_rgv_no")
|
private Integer enterRgvNo;
|
|
/**
|
* 出罐RGV
|
*/
|
@ApiModelProperty(value= "出罐RGV")
|
@TableField("out_rgv_no")
|
private Integer outRgvNo;
|
|
/**
|
* 冷却
|
*/
|
@ApiModelProperty(value= "冷却")
|
private Integer burial;
|
|
public BasJar() {}
|
|
public BasJar(Integer jarNo,Integer region,Integer jarCode,Integer staNo,Integer jarStatus,Integer jarCount,Integer jarErr,String leftDoor,String rightDoor,String leftInEnable,String leftOutEnable,String autoing,Integer jarMode,String rightInEnable,String rightOutEnable) {
|
this.jarNo = jarNo;
|
this.region = region;
|
this.jarCode = jarCode;
|
this.staNo = staNo;
|
this.jarStatus = jarStatus;
|
this.jarCount = jarCount;
|
this.jarErr = jarErr;
|
this.leftDoor = leftDoor;
|
this.rightDoor = rightDoor;
|
this.leftInEnable = leftInEnable;
|
this.leftOutEnable = leftOutEnable;
|
this.autoing = autoing;
|
this.jarMode = jarMode;
|
this.rightInEnable = rightInEnable;
|
this.rightOutEnable = rightOutEnable;
|
}
|
|
// BasJar basJar = new BasJar(
|
// null, // JAR编号[非空]
|
// null, // 区域
|
// null, // 代号
|
// null, // 对应出库站
|
// null, // 状态
|
// null, // 库存数
|
// null, // 异常代码
|
// null, // 左门(checkBox)
|
// null, // 右门(checkBox)
|
// null, // 左门可开(checkBox)
|
// null, // 左门可关(checkBox)
|
// null, // 自动(checkBox)
|
// null, // 模式
|
// null, // 右门可开(checkBox)
|
// null // 右门可关(checkBox)
|
// );
|
|
public Integer getEntStaNo$(){
|
if (this.jarNo==1){
|
return 612;
|
} else if (this.jarNo==2){
|
return 615;
|
} else if (this.jarNo==3){
|
return 619;
|
} else if (this.jarNo==4){
|
return 622;
|
} else {
|
return 0;
|
}
|
}
|
|
}
|