自动化立体仓库 - WMS系统
#
lty
4 天以前 dea586adf232c722e8d2dfa833c3d7711a1019df
src/main/java/com/zy/asrs/entity/Mat.java
@@ -5,8 +5,10 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.AreaService;
import com.zy.asrs.service.TagService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
@@ -307,9 +309,36 @@
    @ExcelProperty(value = "备注")
    private String memo;
    /**
     * 库存预警数量上限
     */
    @TableField("store_max")
    private Double storeMax;
    /**
     * 库存预警数量下限
     */
    @TableField("store_min")
    private Double storeMin;
    /**
     * 库龄预警上限
     */
    @TableField("store_max_date")
    private Integer storeMaxDate;
    /**
     * 库区id
     */
    @ApiModelProperty(value= "库区id")
    @TableField("area_id")
    private String areaId;
    public Mat() {}
    public Mat(String uuid,Long tagId,String matnr,String maktx,String name,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public Mat(String uuid,Long tagId,String matnr,String maktx,String name,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,String areaId) {
        this.uuid = uuid;
        this.tagId = tagId;
        this.matnr = matnr;
@@ -347,6 +376,7 @@
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.memo = memo;
        this.areaId = areaId;
    }
//    Mat mat = new Mat(
@@ -398,6 +428,18 @@
        return null;
    }
    public String getAreaId$(){
        if (Cools.isEmpty(this.areaId)){
            return null;
        }
        AreaService service = SpringUtils.getBean(AreaService.class);
        Area area = service.selectOne(new EntityWrapper<Area>().eq("area_id", this.areaId));
        if (!Cools.isEmpty(area)){
            return String.valueOf(area.getAreaName());
        }
        return null;
    }
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
        switch (this.beBatch){