zhou zhou
1 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.*;
@@ -85,6 +86,15 @@
    @ApiModelProperty(value = "扩展字段唯一标识")
    private String fieldsIndex;
    @ApiModelProperty("客户订单号")
    private String platOrderCode;
    @ApiModelProperty("工单号")
    private String platWorkCode;
    @ApiModelProperty("项目号")
    private String projectCode;
    /**
     * 物料名称
     */
@@ -143,7 +153,7 @@
     * 供应商标识
     */
    @ApiModelProperty(value= "供应商标识")
    private String splrId;
    private Long splrId;
    /**
     * 收货重量
@@ -173,6 +183,7 @@
     * 是否删除 1: 是  0: 否  
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    /**
@@ -187,6 +198,9 @@
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
     */
@@ -200,6 +214,9 @@
     */
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    @ApiModelProperty("是否合格")
    private Short flagNorm;
@@ -225,9 +242,61 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    @ApiModelProperty(value = "基本单位")
    private String baseUnit;
    @ApiModelProperty(value = "使用组织")
    private String useOrgId;
    @ApiModelProperty(value = "使用者名称")
    private String useOrgName;
    @ApiModelProperty(value = "数量属性,外购等")
    private String erpClsId;
    @ApiModelProperty(value = "计价单位")
    private String priceUnitId;
    @ApiModelProperty(value = "入库类型")
    private String inStockType;
    @ApiModelProperty(value = "货主类型")
    private String ownerTypeId;
    @ApiModelProperty(value = "货主")
    private String ownerId;
    @ApiModelProperty(value = "货主名称")
    private String ownerName;
    @ApiModelProperty(value = "保管者类型")
    private String keeperTypeId;
    @ApiModelProperty(value = "保管者")
    private String keeperId;
    @ApiModelProperty(value = "保管者名称")
    private String keeperName;
    @ApiModelProperty(value = "建议目标仓,入库")
    private String targetWarehouseId;
    @ApiModelProperty(value = "建议调出仓,出仓")
    private String sourceWarehouseId;
    @TableField(exist = false)
    private String shipperId$;
    @TableField(exist = false)
    private String splrId$;
    @TableField(exist = false)
    private String isptResult$;
    public WarehouseAreasItem() {}
    public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,String splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,Long splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
        this.areaId = areaId;
        this.areaName = areaName;
        this.matnrId = matnrId;
@@ -281,22 +350,20 @@
//            null    // 备注
//    );
    public BigDecimal getAbleQty(){
        BigDecimal anfmeDec = this.anfme != null ? new BigDecimal(this.anfme.toString()) : BigDecimal.ZERO;
        BigDecimal workQtyDec = this.workQty != null ? new BigDecimal(this.workQty.toString()) : BigDecimal.ZERO;
        BigDecimal qtyDec = this.qty != null ? new BigDecimal(this.qty.toString()) : BigDecimal.ZERO;
        return anfmeDec.subtract(workQtyDec).subtract(qtyDec);
    }
    public String getShipperId$(){
        CompanysService service = SpringUtils.getBean(CompanysService.class);
        Companys companys = service.getById(this.shipperId);
        if (!Cools.isEmpty(companys)){
            return String.valueOf(companys.getName());
        }
        return null;
        return this.shipperId$;
    }
    public String getSplrId$(){
        CompanysService service = SpringUtils.getBean(CompanysService.class);
        Companys companys = service.getById(this.splrId);
        if (!Cools.isEmpty(companys)){
            return String.valueOf(companys.getName());
        }
        return null;
        return this.splrId$;
    }
    public String getStatus$(){
@@ -311,15 +378,6 @@
        }
    }
    public String getCreateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.createBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
@@ -327,27 +385,8 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.updateBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getIsptResult$(){
        if (Cools.isEmpty(this.isptResult)){
            return null;
        }
        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
                .eq(DictData::getDictTypeCode, DictTypeCode.DICT_INSPECT_RESULT)
                .eq(DictData::getValue, this.isptResult));
        if (Objects.isNull(dictData)) {
            return null;
        }
        return dictData.getLabel();
        return this.isptResult$;
    }
    public String getUpdateTime$(){