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.*;
@@ -182,6 +183,7 @@
     * 是否删除 1: 是  0: 否  
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    /**
@@ -196,6 +198,9 @@
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
     */
@@ -209,6 +214,9 @@
     */
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    @ApiModelProperty("是否合格")
    private Short flagNorm;
@@ -233,6 +241,58 @@
     */
    @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() {}
@@ -290,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$(){
@@ -320,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 "";
@@ -336,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$(){