| | |
| | | result.getList().forEach(dto0 -> { |
| | | List<PowerMaxdemandDetEntity> detList0 = powerMaxdemandDetService.selectListByRelId(dto0.getId(), dto0.getOccurTime()); |
| | | dto0.setChildren(ConvertUtils.sourceToTarget(detList0, PowerMaxdemandDetDTO.class)); |
| | | if (CollectionUtils.isEmpty(dto0.getChildren())) { |
| | | if (!CollectionUtils.isEmpty(dto0.getChildren())) { |
| | | dto0.getChildren().forEach(dto1 -> { |
| | | List<PowerMaxdemandDetEntity> detList1 = powerMaxdemandDetService.selectListByRelId(dto1.getId(), dto1.getOccurTime()); |
| | | dto1.setChildren(ConvertUtils.sourceToTarget(detList1, PowerMaxdemandDetDTO.class)); |