Browse Source

优化

dev_shibei_match
zxc 4 years ago
parent
commit
fc6e36d34d
  1. 6
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/group/impl/GroupDataServiceImpl.java

6
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/group/impl/GroupDataServiceImpl.java

@ -64,11 +64,7 @@ public class GroupDataServiceImpl implements GroupDataService {
formDTO.setCustomerId(customerId);
formDTO.setDateId(dateId);
List<GridGroupTotalResultDTO> gridGroupTotalResultDTOS = groupDataDao.selectGridGroupTotal(formDTO);
if (gridGroupTotalResultDTOS.size() == NumConstant.ZERO){
result.forEach(grid -> {
grid.setGroupTotal(NumConstant.ZERO);
});
}else {
if (!CollectionUtils.isEmpty(gridGroupTotalResultDTOS)){
result.forEach(grid -> {
gridGroupTotalResultDTOS.forEach(groupTotal -> {
if (grid.getGridId().equals(groupTotal.getGridId())) {

Loading…
Cancel
Save