| | |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Map; |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | private String splrCode; |
| | | |
| | | @ApiModelProperty("供应商ID") |
| | | private Long splrId; |
| | | |
| | | /** |
| | | * 平台标识(行号) |
| | | */ |
| | | @ApiModelProperty(value = "平台标识(行号)") |
| | | private String platItemId; |
| | | |
| | | @ApiModelProperty("客户订单号") |
| | | private String platOrderCode; |
| | | |
| | | @ApiModelProperty("工单号") |
| | | private String platWorkCode; |
| | | |
| | | @ApiModelProperty("项目号") |
| | | private String projectCode; |
| | | /** |
| | | * 库存批次 |
| | | */ |
| | |
| | | @ApiModelProperty(value= "跟踪码") |
| | | private String trackCode; |
| | | |
| | | @ApiModelProperty("字段索引") |
| | | private String fieldsIndex; |
| | | /** |
| | | * 条形码 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "包装名称") |
| | | private String packName; |
| | | |
| | | @ApiModelProperty("汇总类型") |
| | | @TableField(exist = false) |
| | | private String aggType; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 冻结 |
| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | |
| | | @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() {} |
| | | |
| | |
| | | // 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; } |
| | |
| | | } |
| | | } |
| | | |
| | | 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$(){ |