Browse Source

网格小组修改

dev
zxc 5 years ago
parent
commit
136aaf6186
  1. 5
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/group/impl/GroupDataServiceImpl.java
  2. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

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

@ -59,12 +59,9 @@ public class GroupDataServiceImpl implements GroupDataService {
});
}else {
result.forEach(grid -> {
GroupGridDailyResultDTO dailyResult = new GroupGridDailyResultDTO();
BeanUtils.copyProperties(dimTime, dailyResult);
dailyResult.setAgencyId(grid.getAgencyId());
gridGroupTotalResultDTOS.forEach(groupTotal -> {
if (grid.getGridId().equals(groupTotal.getGridId())) {
dailyResult.setGroupTotal(groupTotal.getGridGroupTotal());
grid.setGroupTotal(groupTotal.getGridGroupTotal());
}
});

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

@ -224,7 +224,7 @@ public class StatsGroupServiceImpl implements StatsGroupService {
*/
public DimIdGenerator.DimIdBean getDimIdBean(){
ZoneId zoneId = ZoneId.systemDefault();
LocalDate localDate = LocalDate.now();
LocalDate localDate = LocalDate.now().minusDays(NumConstant.ONE);
ZonedDateTime zdt = localDate.atStartOfDay(zoneId);
Date date = Date.from(zdt.toInstant());
return DimIdGenerator.getDimIdBean(date);

Loading…
Cancel
Save