自动化立体仓库 - WMS系统
zhang
昨天 8d90833250abee5951572659e9a192f2487cd704
src/main/java/com/zy/asrs/entity/LocCache.java
@@ -1,23 +1,21 @@
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.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.enums.LocStsType;
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 com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@TableName("asr_loc_cache")
@@ -33,119 +31,119 @@
    /**
     * 库位号
     */
    @ApiModelProperty(value= "库位号")
    @ApiModelProperty(value = "库位号")
    @TableField("loc_no")
    private String locNo;
    /**
     * 库位类型
     */
    @ApiModelProperty(value= "库位类型")
    @ApiModelProperty(value = "库位类型")
    @TableField("whs_type")
    private Long whsType;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    @TableField("loc_sts")
    private String locSts;
    /**
     * 排
     */
    @ApiModelProperty(value= "排")
    @ApiModelProperty(value = "排")
    private Integer row1;
    /**
     * 列
     */
    @ApiModelProperty(value= "列")
    @ApiModelProperty(value = "列")
    private Integer bay1;
    /**
     * 层
     */
    @ApiModelProperty(value= "层")
    @ApiModelProperty(value = "层")
    private Integer lev1;
    /**
     * 满板(checkBox)
     */
    @ApiModelProperty(value= "满板(checkBox)")
    @ApiModelProperty(value = "满板(checkBox)")
    @TableField("full_plt")
    private String fullPlt;
    /**
     * 库位状态
     */
    @ApiModelProperty(value= "库位状态")
    @ApiModelProperty(value = "库位状态")
    @TableField("loc_type")
    private String locType;
    /**
     * 高低类型 0: 未知  1: 低库位  2: 高库位
     * 高低类型 0: 未知  1: 低库位  2: 高库位
     */
    @ApiModelProperty(value= "高低类型 0: 未知  1: 低库位  2: 高库位  ")
    @ApiModelProperty(value = "高低类型 0: 未知  1: 低库位  2: 高库位  ")
    @TableField("loc_type1")
    private Short locType1;
    /**
     * 宽窄类型 0: 未知  1: 窄库位  2: 宽库位
     * 宽窄类型 0: 未知  1: 窄库位  2: 宽库位
     */
    @ApiModelProperty(value= "宽窄类型 0: 未知  1: 窄库位  2: 宽库位  ")
    @ApiModelProperty(value = "宽窄类型 0: 未知  1: 窄库位  2: 宽库位  ")
    @TableField("loc_type2")
    private Short locType2;
    /**
     * 轻重类型 0: 未知  1: 轻库位  2: 重库位
     * 轻重类型 0: 未知  1: 轻库位  2: 重库位
     */
    @ApiModelProperty(value= "轻重类型 0: 未知  1: 轻库位  2: 重库位  ")
    @ApiModelProperty(value = "轻重类型 0: 未知  1: 轻库位  2: 重库位  ")
    @TableField("loc_type3")
    private Short locType3;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    @TableField("out_enable")
    private String outEnable;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    @TableField("io_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ioTime;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    @TableField("first_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date firstTime;
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @ApiModelProperty(value = "修改人员")
    @TableField("modi_user")
    private Long modiUser;
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @ApiModelProperty(value = "修改时间")
    @TableField("modi_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modiTime;
    /**
     * 创建者
     */
    @ApiModelProperty(value= "创建者")
    @ApiModelProperty(value = "创建者")
    @TableField("appe_user")
    private Long appeUser;
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @ApiModelProperty(value = "添加时间")
    @TableField("appe_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    private String barcode;
    @ApiModelProperty("库区ID")
@@ -162,19 +160,20 @@
    /**
     * 是否冻结,0.未冻结,1.已冻结
     */
    @ApiModelProperty(value= "是否冻结,0.未冻结,1.已冻结")
    @ApiModelProperty(value = "是否冻结,0.未冻结,1.已冻结")
    private Integer frozen;
    /**
     * 冻结备注
     */
    @ApiModelProperty(value= "冻结备注")
    @ApiModelProperty(value = "冻结备注")
    @TableField("frozen_memo")
    private String frozenMemo;
    public LocCache() {}
    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) {
    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;
@@ -199,10 +198,10 @@
    }
    public String getWhsType$(){
    public String getWhsType$() {
        BasWhsTypeService service = SpringUtils.getBean(BasWhsTypeService.class);
        BasWhsType basWhsType = service.selectById(this.whsType);
        if (!Cools.isEmpty(basWhsType)){
        if (!Cools.isEmpty(basWhsType)) {
            return String.valueOf(basWhsType.getWhsDesc());
        }
        return null;
@@ -235,9 +234,11 @@
//        return null;
//    }
    public String getLocType1$(){
        if (null == this.locType1){ return null; }
        switch (this.locType1){
    public String getLocType1$() {
        if (null == this.locType1) {
            return null;
        }
        switch (this.locType1) {
            case 0:
                return "未知";
            case 1:
@@ -249,9 +250,11 @@
        }
    }
    public String getLocType2$(){
        if (null == this.locType2){ return null; }
        switch (this.locType2){
    public String getLocType2$() {
        if (null == this.locType2) {
            return null;
        }
        switch (this.locType2) {
            case 0:
                return "未知";
            case 1:
@@ -263,9 +266,11 @@
        }
    }
    public String getLocType3$(){
        if (null == this.locType3){ return null; }
        switch (this.locType3){
    public String getLocType3$() {
        if (null == this.locType3) {
            return null;
        }
        switch (this.locType3) {
            case 0:
                return "未知";
            case 1:
@@ -277,47 +282,47 @@
        }
    }
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
    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)){
    public String getFirstTime$() {
        if (Cools.isEmpty(this.firstTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.firstTime);
    }
    public String getModiUser$(){
    public String getModiUser$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
    public String getModiTime$() {
        if (Cools.isEmpty(this.modiTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public String getAppeUser$(){
    public String getAppeUser$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
    public String getAppeTime$() {
        if (Cools.isEmpty(this.appeTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);