| | |
| | | if (!registrantIds.isEmpty()) { |
| | | List<SysUser> sysUsers = sysUserMapper.selectList(registrantIds); |
| | | userMap = sysUsers.stream().collect(Collectors.toMap(SysUser::getUserId, Function.identity())); |
| | | }else { |
| | | } else { |
| | | userMap = new HashMap<>(); |
| | | } |
| | | |
| | |
| | | dto.setSupplierCoal(supply.getSupplierName() + " - " + coalInfo.getCoal()); |
| | | } |
| | | // 设置煤质数据 |
| | | dto.setCoalValues(coalValuesMap.getOrDefault(inventory.getCoalPlanId(), Collections.emptyList())); |
| | | dto.setCoalValues(coalValuesMap.getOrDefault(inventory.getCoalPlanId(), Collections.emptyList()) |
| | | .stream() |
| | | .map(coalValue -> { |
| | | Map<String, String> map = new HashMap<>(); |
| | | map.put("fieldName", coalValue.getFieldName()); |
| | | map.put("coalValue", coalValue.getCoalValue()); |
| | | return map; |
| | | }) |
| | | .collect(Collectors.toList())); |
| | | return dto; |
| | | }) |
| | | .collect(Collectors.toList()); |