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