zhou zhou
2 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java
@@ -206,6 +206,9 @@
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
     */
@@ -219,6 +222,9 @@
     */
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    /**
     * 修改时间
@@ -238,6 +244,51 @@
    @ApiModelProperty("扩展字段")
    @TableField(exist = false)
    private Map<String, String> extendFields;
    @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 matnrId$;
    public StockItem() {}
@@ -310,66 +361,12 @@
//            null    // 备注
//    );
//    public String getStockId$(){
//        StockService service = SpringUtils.getBean(StockService.class);
//        Stock stock = service.getById(this.stockId);
//        if (!Cools.isEmpty(stock)){
//            return String.valueOf(stock.getId());
//        }
//        return null;
//    }
    public String getMatnrId$(){
        MatnrService service = SpringUtils.getBean(MatnrService.class);
        Matnr matnr = service.getById(this.matnrId);
        if (!Cools.isEmpty(matnr)){
            return String.valueOf(matnr.getUnit());
        }
        return null;
        return this.matnrId$;
    }
//    public String getShipperId$(){
//        CompanysService service = SpringUtils.getBean(CompanysService.class);
//        Companys shipper = service.getById(this.shipperId);
//        if (!Cools.isEmpty(shipper)){
//            return String.valueOf(shipper.getName());
//        }
//        return null;
//    }
//    public String getSplrId$(){
//        SupplierService service = SpringUtils.getBean(SupplierService.class);
//        Supplier supplier = service.getById(this.splrId);
//        if (!Cools.isEmpty(supplier)){
//            return String.valueOf(supplier.getnull());
//        }
//        return null;
//    }
//
//    public String getInspectId$(){
//        QlyInspectService service = SpringUtils.getBean(QlyInspectService.class);
//        QlyInspect qlyInspect = service.getById(this.inspectId);
//        if (!Cools.isEmpty(qlyInspect)){
//            return String.valueOf(qlyInspect.getCode());
//        }
//        return null;
//    }
//
//    public String getLocId$(){
//        LocService service = SpringUtils.getBean(LocService.class);
//        Loc loc = service.getById(this.locId);
//        if (!Cools.isEmpty(loc)){
//            return String.valueOf(loc.getCode());
//        }
//        return null;
//    }
//
//    public String getLockedTime$(){
//        if (Cools.isEmpty(this.lockedTime)){
//            return "";
//        }
//        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.lockedTime);
//    }
    public String getStatus$(){
        if (null == this.status){ return null; }
@@ -383,29 +380,11 @@
        }
    }
    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$(){