| | |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | List<DictData> dictDatas = dictDataService.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_TASK_TYPE) |
| | | .in(DictData::getId, asList)); |
| | | .in(DictData::getValue, asList)); |
| | | if (dictDatas.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<String> strings = dictDatas.stream().map(DictData::getLabel).collect(Collectors.toList()); |
| | | |
| | | return StringUtils.join(strings, ","); |
| | | } |
| | | |
| | | public String getDevice$(){ |
| | | if (null == this.device){ return null; } |
| | | String[] split = this.device.split(","); |
| | | List<String> asList = Arrays.asList(split); |
| | | if (asList.isEmpty()) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | List<DictData> dictDatas = dictDataService.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_DEVICE_TYPE) |
| | | .in(DictData::getValue, asList)); |
| | | if (dictDatas.isEmpty()) { |
| | | return null; |
| | | } |