Browse Source

#水电站bug解决

zhongwei
yang_shj 1 year ago
parent
commit
9d1e911cf3
  1. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/AreaMonthReportServiceImpl.java

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/AreaMonthReportServiceImpl.java

@ -148,7 +148,7 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService {
public R<List<AreaMonthReportVo>> getReport(String date) { public R<List<AreaMonthReportVo>> getReport(String date) {
List<AreaMonthReportVo> areaMonthReportVoList = this.getAreaMonthReport(date, false); List<AreaMonthReportVo> areaMonthReportVoList = this.getAreaMonthReport(date, false);
if (CollectionUtil.isEmpty(areaMonthReportVoList)) { if (CollectionUtil.isEmpty(areaMonthReportVoList)) {
R.fail("选择月份无统计报表数据"); return R.fail("选择月份无统计报表数据");
} }
//根据用户权限获取机构 //根据用户权限获取机构
return R.data(areaMonthReportVoList.stream().sorted(Comparator.comparing(AreaMonthReportVo::getActualPower, Comparator.reverseOrder())).collect(Collectors.toList())); return R.data(areaMonthReportVoList.stream().sorted(Comparator.comparing(AreaMonthReportVo::getActualPower, Comparator.reverseOrder())).collect(Collectors.toList()));

Loading…
Cancel
Save