| | |
| | | private AllocationExtensionService allocationExtensionService; |
| | | @Autowired |
| | | private ResponsibilityUnitService responsibilityUnitService; |
| | | @Autowired |
| | | private SysDictTypeService sysDictTypeService; |
| | | |
| | | /** |
| | | * 根据字典类型获取字典数据 |
| | |
| | | escalationTypeList.add(typeMap); |
| | | } |
| | | //根据污染类型分类 |
| | | SysDictType sysDictType = sysDictTypeService.slectFind(Constants.WU_RAN_LEI_XING); |
| | | Map<Integer, List<Allocation>> polluteTypeMap = allocations.stream().collect(Collectors.groupingBy(o -> o.getPolluteType())); |
| | | Set<Integer> polluteTypes = polluteTypeMap.keySet(); |
| | | for (Integer polluteType : polluteTypes) { |
| | | HashMap<String, Object> typeMap = new HashMap<>(); |
| | | List<Allocation> allocations1 = polluteTypeMap.get(polluteType); |
| | | QueryWrapper<SysDictData> sysDictDataQueryWrapper = new QueryWrapper<>(); |
| | | sysDictDataQueryWrapper.eq("dict_type_id",32); |
| | | sysDictDataQueryWrapper.eq("dict_type_id",sysDictType.getId()); |
| | | sysDictDataQueryWrapper.eq("dataKey",polluteType); |
| | | SysDictData sysDictData = sysDictDataMapper.selectOne(sysDictDataQueryWrapper); |
| | | typeMap.put("name",sysDictData.getDataValue()); |