| | |
| | | if (CollectionUtils.isEmpty(gxList)){ |
| | | continue; |
| | | } |
| | | gxList = list.stream().sorted(Comparator.comparing(SgProjectInfoVO::getPrice)).collect(Collectors.toList()); |
| | | gxList = gxList.stream().sorted(Comparator.comparing(SgProjectInfoVO::getPrice)).collect(Collectors.toList()); |
| | | SgTypeVO typeVO = SgTypeVO.builder().typeName(gxList.get(0).getTypeName()).build(); |
| | | List<SgDeviceDO> deviceDOS = new ArrayList<>(); |
| | | //设备分组 |
| | | Map<Long, List<SgProjectInfoVO>> dMap = gxList.stream().collect(Collectors.groupingBy(SgProjectInfoVO::getDId)); |
| | | Map<Long, List<SgProjectInfoVO>> dMap = gxList.stream().filter(s->s.getDId()!=null).collect(Collectors.groupingBy(SgProjectInfoVO::getDId)); |
| | | for (Map.Entry<Long, List<SgProjectInfoVO>> device : dMap.entrySet()) { |
| | | Long dId = device.getKey(); |
| | | List<SgProjectInfoVO> deList = device.getValue(); |