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.SpringUtils;
|
import com.zy.asrs.service.BasWhsTypeService;
|
import com.zy.asrs.service.BasCrnpService;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import com.zy.system.service.UserService;
|
import com.zy.system.entity.User;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_loc_cache")
|
public class LocCache implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
@ApiModelProperty("主键ID")
|
@TableId
|
private Long id;
|
|
/**
|
* 库位号
|
*/
|
@ApiModelProperty(value= "库位号")
|
@TableField("loc_no")
|
private String locNo;
|
|
/**
|
* 库位类型
|
*/
|
@ApiModelProperty(value= "库位类型")
|
@TableField("whs_type")
|
private Long whsType;
|
|
@ApiModelProperty(value= "")
|
@TableField("loc_sts")
|
private String locSts;
|
|
/**
|
* 排
|
*/
|
@ApiModelProperty(value= "排")
|
private Integer row1;
|
|
/**
|
* 列
|
*/
|
@ApiModelProperty(value= "列")
|
private Integer bay1;
|
|
/**
|
* 层
|
*/
|
@ApiModelProperty(value= "层")
|
private Integer lev1;
|
|
/**
|
* 满板(checkBox)
|
*/
|
@ApiModelProperty(value= "满板(checkBox)")
|
@TableField("full_plt")
|
private String fullPlt;
|
|
/**
|
* 库位状态
|
*/
|
@ApiModelProperty(value= "库位状态")
|
@TableField("loc_type")
|
private String locType;
|
|
/**
|
* 高低类型 0: 未知 1: 低库位 2: 高库位
|
*/
|
@ApiModelProperty(value= "高低类型 0: 未知 1: 低库位 2: 高库位 ")
|
@TableField("loc_type1")
|
private Short locType1;
|
|
/**
|
* 宽窄类型 0: 未知 1: 窄库位 2: 宽库位
|
*/
|
@ApiModelProperty(value= "宽窄类型 0: 未知 1: 窄库位 2: 宽库位 ")
|
@TableField("loc_type2")
|
private Short locType2;
|
|
/**
|
* 轻重类型 0: 未知 1: 轻库位 2: 重库位
|
*/
|
@ApiModelProperty(value= "轻重类型 0: 未知 1: 轻库位 2: 重库位 ")
|
@TableField("loc_type3")
|
private Short locType3;
|
|
@ApiModelProperty(value= "")
|
@TableField("out_enable")
|
private String outEnable;
|
|
@ApiModelProperty(value= "")
|
@TableField("io_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date ioTime;
|
|
@ApiModelProperty(value= "")
|
@TableField("first_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date firstTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("modi_user")
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("modi_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date modiTime;
|
|
/**
|
* 创建者
|
*/
|
@ApiModelProperty(value= "创建者")
|
@TableField("appe_user")
|
private Long appeUser;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("appe_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date appeTime;
|
|
@ApiModelProperty(value= "")
|
private String barcode;
|
|
@ApiModelProperty("库区ID")
|
private Long areaId;
|
|
@ApiModelProperty("库区名称")
|
private String areaName;
|
|
/**
|
* 是否冻结,0.未冻结,1.已冻结
|
*/
|
@ApiModelProperty(value= "是否冻结,0.未冻结,1.已冻结")
|
private Integer frozen;
|
|
/**
|
* 冻结备注
|
*/
|
@ApiModelProperty(value= "冻结备注")
|
@TableField("frozen_memo")
|
private String frozenMemo;
|
|
public LocCache() {}
|
|
public LocCache(String locNo,Long whsType,Integer pltType,Integer ctnType,String locSts,String sheetNo,Integer crnNo,Integer row1,Integer bay1,Integer lev1,String fullPlt,String locType,Short locType1,Short locType2,Short locType3,String outEnable,Date ioTime,Date firstTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Date errorTime,String errorMemo,Integer ctnKind,Double scWeight,String invWh,String mk,String barcode,String PdcType,String ctnNo,Integer libraryType,Integer gro1,Integer frozen,String frozenMemo) {
|
this.locNo = locNo;
|
this.whsType = whsType;
|
this.locSts = locSts;
|
this.row1 = row1;
|
this.bay1 = bay1;
|
this.lev1 = lev1;
|
this.fullPlt = fullPlt;
|
this.locType = locType;
|
this.locType1 = locType1;
|
this.locType2 = locType2;
|
this.locType3 = locType3;
|
this.outEnable = outEnable;
|
this.ioTime = ioTime;
|
this.firstTime = firstTime;
|
this.modiUser = modiUser;
|
this.modiTime = modiTime;
|
this.appeUser = appeUser;
|
this.appeTime = appeTime;
|
this.barcode = barcode;
|
this.frozen = frozen;
|
this.frozenMemo = frozenMemo;
|
}
|
|
|
public String getWhsType$(){
|
BasWhsTypeService service = SpringUtils.getBean(BasWhsTypeService.class);
|
BasWhsType basWhsType = service.selectById(this.whsType);
|
if (!Cools.isEmpty(basWhsType)){
|
return String.valueOf(basWhsType.getWhsDesc());
|
}
|
return null;
|
}
|
|
// public String getCrnNo$(){
|
// BasCrnpService service = SpringUtils.getBean(BasCrnpService.class);
|
// BasCrnp basCrnp = service.selectById(this.crnNo);
|
// if (!Cools.isEmpty(basCrnp)){
|
// return String.valueOf(basCrnp.getCrnNo());
|
// }
|
// return null;
|
// }
|
|
public String getLocType1$(){
|
if (null == this.locType1){ return null; }
|
switch (this.locType1){
|
case 0:
|
return "未知";
|
case 1:
|
return "低库位";
|
case 2:
|
return "高库位";
|
default:
|
return String.valueOf(this.locType1);
|
}
|
}
|
|
public String getLocType2$(){
|
if (null == this.locType2){ return null; }
|
switch (this.locType2){
|
case 0:
|
return "未知";
|
case 1:
|
return "窄库位";
|
case 2:
|
return "宽库位";
|
default:
|
return String.valueOf(this.locType2);
|
}
|
}
|
|
public String getLocType3$(){
|
if (null == this.locType3){ return null; }
|
switch (this.locType3){
|
case 0:
|
return "未知";
|
case 1:
|
return "轻库位";
|
case 2:
|
return "重库位";
|
default:
|
return String.valueOf(this.locType3);
|
}
|
}
|
|
public String getIoTime$(){
|
if (Cools.isEmpty(this.ioTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
|
}
|
|
public String getFirstTime$(){
|
if (Cools.isEmpty(this.firstTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.firstTime);
|
}
|
|
public String getModiUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.modiUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getModiTime$(){
|
if (Cools.isEmpty(this.modiTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
|
}
|
|
public String getAppeUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.appeUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
}
|