自动化立体仓库 - WMS系统
*
L
5 天以前 083659a2e1a8eb245b086d7046ee7d8e61f07a8f
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -4,8 +4,10 @@
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasBoxTypeService;
import com.zy.asrs.service.LocMastService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
@@ -16,6 +18,7 @@
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Data
@TableName("asr_loc_detl")
@@ -35,33 +38,34 @@
    @ExcelProperty("数量")
    private Double anfme;
    @ApiModelProperty(value= "商品编号")
    @ExcelProperty("商品编号")
    @ApiModelProperty(value= "规格")
    @ExcelProperty("规格")
    private String matnr;
    @ApiModelProperty(value= "商品名称")
    @ExcelProperty("商品名称")
    private String maktx;
    @ApiModelProperty(value= "序列码")
    @ExcelProperty("序列码")
    @ApiModelProperty(value= "接头")
    private String specs;
    @ApiModelProperty(value= "箱号")
//    @ExcelProperty("箱号")
    private String batch;
    @ApiModelProperty(value= "单据编号")
    @ExcelProperty("单据编号")
//    @ExcelProperty("单据编号")
    @TableField("order_no")
    private String orderNo;
    @ApiModelProperty(value= "规格")
    private String specs;
    @ApiModelProperty(value= "型号")
    @ApiModelProperty(value= "卷号")
    private String model;
    @ApiModelProperty(value= "颜色")
    private String color;
    @ApiModelProperty(value= "品牌")
    @ApiModelProperty(value= "木箱类型")
    @ExcelProperty("木箱类型")
    private String brand;
    @ApiModelProperty(value= "单位")
@@ -79,7 +83,7 @@
    @ApiModelProperty(value= "条码")
    private String barcode;
    @ApiModelProperty(value= "产地")
    @ApiModelProperty(value= "产地  位置")
    private String origin;
    @ApiModelProperty(value= "厂家")
@@ -157,6 +161,13 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 卷信息ID
     */
    @ApiModelProperty(value= "卷信息ID")
    @TableField("roll_up")
    private Long rollUp;
    public String getLocNo$(){
        LocMastService service = SpringUtils.getBean(LocMastService.class);
        LocMast locMast = service.selectById(this.locNo);
@@ -208,9 +219,11 @@
        if (null == this.danger){ return null; }
        switch (this.danger){
            case 1:
                return "是";
                return "合格";
            case 2:
                return "不合格";
            case 0:
                return "否";
                return "待判";
            default:
                return String.valueOf(this.danger);
        }
@@ -225,6 +238,15 @@
        return null;
    }
    public String getBrand$(){
        BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class);
        List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true));
        for (BasBoxType basBoxType:basBoxTypes){
            return String.valueOf(basBoxType.getBoxSpecs());
        }
        return this.brand;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";