| | |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | @TableField(exist = false) |
| | | private String typeIds$; |
| | | |
| | | @TableField(exist = false) |
| | | private String warehouseId$; |
| | | |
| | | @TableField(exist = false) |
| | | private String areaId$; |
| | | |
| | | |
| | | |
| | | public Loc() {} |
| | | |
| | |
| | | // ); |
| | | |
| | | public String getTypeIds$(){ |
| | | if (null == this.type){ return null; } |
| | | String[] split = this.type.split(","); |
| | | List<String> asList = Arrays.asList(split); |
| | | if (asList.isEmpty()) { |
| | | return null; |
| | | } |
| | | LocTypeService locTypeService = SpringUtils.getBean(LocTypeService.class); |
| | | List<LocType> locTypes = locTypeService.list(new LambdaQueryWrapper<LocType>().in(LocType::getId, asList)); |
| | | if (locTypes.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<String> strings = locTypes.stream().map(LocType::getName).collect(Collectors.toList()); |
| | | return StringUtils.join(strings, ","); |
| | | return this.typeIds$; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | public String getWarehouseId$(){ |
| | | if (null == this.warehouseId){ return null; } |
| | | WarehouseService service = SpringUtils.getBean(WarehouseService.class); |
| | | Warehouse warehouse = service.getById(this.warehouseId); |
| | | if (!Cools.isEmpty(warehouse)){ |
| | | return String.valueOf(warehouse.getName()); |
| | | } |
| | | return null; |
| | | return this.warehouseId$; |
| | | } |
| | | |
| | | public String getAreaId$(){ |
| | | if (null == this.areaId){ return null; } |
| | | WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class); |
| | | WarehouseAreas warehouseAreas = service.getById(this.areaId); |
| | | if (!Cools.isEmpty(warehouseAreas)){ |
| | | return String.valueOf(warehouseAreas.getName()); |
| | | } |
| | | return null; |
| | | return this.areaId$; |
| | | } |
| | | |
| | | public String getStatus$(){ |