| | |
| | | */ |
| | | @ApiModelProperty(value = "仓库名称") |
| | | private String stationTypeCode; |
| | | @TableField(exist = false) |
| | | private List<Long> containerTypes$; |
| | | |
| | | @TableField(exist = false) |
| | | private String useStatus$; |
| | | |
| | | @TableField(exist = false) |
| | | private String area$; |
| | | |
| | | |
| | | |
| | | public BasStation() { |
| | | } |
| | |
| | | } |
| | | |
| | | public List<Long> getContainerTypes$() { |
| | | if (Cools.isEmpty(this.containerType)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | DictDataService service = SpringUtils.getBean(DictDataService.class); |
| | | |
| | | // Object parse = JSONArray.parse(this.getContainerType()); |
| | | // List<Long> longs1 = JSONObject.parseArray(parse.toString(), Long.class); |
| | | List<DictData> dictData = service.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, "sys_container_type") |
| | | .in(DictData::getValue, this.getContainerType())); |
| | | List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList()); |
| | | return longs; |
| | | return this.containerTypes$; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | |
| | | } |
| | | |
| | | public String getUseStatus$() { |
| | | if (Cools.isEmpty(this.useStatus)) { |
| | | return ""; |
| | | } |
| | | DictDataService service = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = service.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, "sys_sta_use_stas") |
| | | .eq(DictData::getValue, this.useStatus)); |
| | | if (!Cools.isEmpty(dictData)) { |
| | | return String.valueOf(dictData.getLabel()); |
| | | } |
| | | return ""; |
| | | return this.useStatus$; |
| | | } |
| | | |
| | | public String getArea$() { |
| | | if (null == this.area) { |
| | | return null; |
| | | } |
| | | WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class); |
| | | WarehouseAreas warehouseAreas = service.getById(this.area); |
| | | if (!Cools.isEmpty(warehouseAreas)) { |
| | | return String.valueOf(warehouseAreas.getName()); |
| | | } |
| | | return null; |
| | | return this.area$; |
| | | } |
| | | |
| | | public Boolean getStatusBool() { |