zhou zhou
1 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java
@@ -207,6 +207,9 @@
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
     */
@@ -221,8 +224,19 @@
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    @ApiModelProperty("供应商ID")
    private Long splrId;
    @ApiModelProperty("供应商编码(关联查询带出,非表字段)")
    @TableField(exist = false)
    private String splrCode;
    @ApiModelProperty("供应商名称(关联查询带出,非表字段)")
    @TableField(exist = false)
    private String splrName;
    /**
     * 修改时间
@@ -294,6 +308,16 @@
    @ApiModelProperty(value = "建议调出仓,出仓")
    private String sourceWarehouseId;
    @TableField(exist = false)
    private String wareArea;
    @TableField(exist = false)
    private String type$;
    @TableField(exist = false)
    private String wkType$;
    public LocItem() {}
    public LocItem(Long locId,Long orderId,String type,Long orderItemId,Short wkType,Long matnrId,String maktx,String matnrCode,String trackCode,String unit,Double anfme,String batch,String splrBatch,String spec,String model,String fieldsIndex,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
@@ -351,39 +375,15 @@
//    );
    public String getWareArea(){
        if (Cools.isEmpty(this.locId)){
            return "";
        }
        LocService locService = SpringUtils.getBean(LocService.class);
        Loc loc = locService.getById(this.locId);
        if (Objects.isNull(loc)) {
            return null;
        }
        return loc.getAreaId$();
        return this.wareArea;
    }
    public String getType$(){
        if (Cools.isEmpty(this.type)){
            return "";
        }
        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE).eq(DictData::getValue, this.type));
        if (Objects.isNull(dictData)) {
            return null;
        }
        return dictData.getLabel();
        return this.type$;
    }
    public String getWkType$(){
        if (Cools.isEmpty(this.wkType)){
            return "";
        }
        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType));
        if (Objects.isNull(dictData)) {
            return null;
        }
        return dictData.getLabel();
        return this.wkType$;
    }
    public Double getReviseQty() {
@@ -407,29 +407,11 @@
        return DateUtils.diff(createTime, new Date());
    }
    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 "";
        }
        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 getUpdateTime$(){