自动化立体仓库 - WMS系统
whycq
2024-11-25 bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef
src/main/java/com/zy/asrs/entity/LocRule.java
@@ -1,24 +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.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
import java.text.SimpleDateFormat;
import java.util.Date;
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_rule")
@@ -36,7 +33,8 @@
    /**
     * 商品编号
     */
    @ApiModelProperty(value= "商品编号")
    @ApiModelProperty(value= "物料号")
    @ExcelProperty(value = "物料编码前4位")
    private String matnr;
    /**
@@ -61,12 +59,14 @@
     * 批号
     */
    @ApiModelProperty(value= "批号")
    @ExcelProperty(value = "批号")
    private String batch;
    /**
     * 其他
     */
    @ApiModelProperty(value= "其他")
    @ExcelProperty(value = "库区")
    private String other;
    /**
@@ -74,6 +74,7 @@
     */
    @ApiModelProperty(value= "开始排")
    @TableField("row_beg")
    @ExcelProperty(value = "开始排")
    private Integer rowBeg;
    /**
@@ -81,6 +82,7 @@
     */
    @ApiModelProperty(value= "结束排")
    @TableField("row_end")
    @ExcelProperty(value = "结束排")
    private Integer rowEnd;
    /**
@@ -88,6 +90,7 @@
     */
    @ApiModelProperty(value= "开始列")
    @TableField("bay_beg")
    @ExcelProperty(value = "开始列")
    private Integer bayBeg;
    /**
@@ -95,6 +98,7 @@
     */
    @ApiModelProperty(value= "结束列")
    @TableField("bay_end")
    @ExcelProperty(value = "结束列")
    private Integer bayEnd;
    /**
@@ -102,6 +106,7 @@
     */
    @ApiModelProperty(value= "开始层")
    @TableField("lev_beg")
    @ExcelProperty(value = "开始层")
    private Integer levBeg;
    /**
@@ -109,6 +114,7 @@
     */
    @ApiModelProperty(value= "结束层")
    @TableField("lev_end")
    @ExcelProperty(value = "结束层")
    private Integer levEnd;
    /**
@@ -128,6 +134,7 @@
     */
    @ApiModelProperty(value= "添加人员")
    @TableField("create_by")
    @ExcelProperty(value = "添加人员")
    private Long createBy;
    /**
@@ -159,9 +166,22 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 是否支持混载{0:不支持,1:支持}
     */
    @ApiModelProperty(value= "是否支持混载")
    private Integer mixed;
    /**
     * 支持混载情况下,没找到库位是否继续寻找{0:否,1:是}
     */
    @ApiModelProperty(value= "是否继续寻找")
    @TableField("keep_go")
    private Integer keepGo;
    public LocRule() {}
    public LocRule(String matnr,String specs,String model,String cstmr,String batch,String other,Integer rowBeg,Integer rowEnd,Integer bayBeg,Integer bayEnd,Integer levBeg,Integer levEnd,Integer limit,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public LocRule(String matnr,String specs,String model,String cstmr,String batch,String other,Integer rowBeg,Integer rowEnd,Integer bayBeg,Integer bayEnd,Integer levBeg,Integer levEnd,Integer limit,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer mixed) {
        this.matnr = matnr;
        this.specs = specs;
        this.model = model;
@@ -181,6 +201,7 @@
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.memo = memo;
        this.mixed = mixed;
    }
//    LocRule locRule = new LocRule(
@@ -249,5 +270,18 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public String getMixed$() {
        if (this.mixed == null) {
            return "";
        }
        return this.mixed == 1 ? "是" : "否";
    }
    public String getKeepGo$() {
        if (this.keepGo == null) {
            return "";
        }
        return this.keepGo == 1 ? "是" : "否";
    }
}