a1f17421 康伟

kangwei: 节能环保,同比、环比时间处理

1 个父辈 a0265072
...@@ -302,9 +302,9 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa ...@@ -302,9 +302,9 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa
302 //当月数据 302 //当月数据
303 List<JnhbReportData> jnhbReportDataList = jnhbReportShowDepaetMonthDate(departIds,dateVO.getNowMonthStartDate(),dateVO.getNowMonthEndDate()); 303 List<JnhbReportData> jnhbReportDataList = jnhbReportShowDepaetMonthDate(departIds,dateVO.getNowMonthStartDate(),dateVO.getNowMonthEndDate());
304 // 上月数据 环比 304 // 上月数据 环比
305 List<JnhbReportData> lastMonthMapDataList = jnhbReportShowDepaetMonthDate(departIds,dateVO.getNowMonthStartDate(),dateVO.getNowMonthEndDate()); 305 List<JnhbReportData> lastMonthMapDataList = jnhbReportShowDepaetMonthDate(departIds, dateVO.getLastMonthStartTime(),dateVO.getLastMonthEndTime());
306 // 去年数据 同比 306 // 去年数据 同比
307 List<JnhbReportData> lastYearReportDataList = jnhbReportShowDepaetMonthDate(departIds,dateVO.getNowMonthStartDate(),dateVO.getNowMonthEndDate()); 307 List<JnhbReportData> lastYearReportDataList = jnhbReportShowDepaetMonthDate(departIds,dateVO.getLastYearMonthStartTime(),dateVO.getLastYearMonthEndTime());
308 //System.out.println("333333---**************执行时间:"+ (System.nanoTime() - startTime) / 1_000_000.0 + " milliseconds"); 308 //System.out.println("333333---**************执行时间:"+ (System.nanoTime() - startTime) / 1_000_000.0 + " milliseconds");
309 LoadRateVO loadRateVO = null; 309 LoadRateVO loadRateVO = null;
310 PowerConsumeVO powerConsumeVO = null; 310 PowerConsumeVO powerConsumeVO = null;
...@@ -325,8 +325,8 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa ...@@ -325,8 +325,8 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa
325 } 325 }
326 } 326 }
327 } 327 }
328 if(lastMonthMapDataList != null && !lastMonthMapDataList.isEmpty()){ 328 if(lastYearReportDataList != null && !lastYearReportDataList.isEmpty()){
329 for(JnhbReportData reportData3 : lastMonthMapDataList){// 去年 同比 329 for(JnhbReportData reportData3 : lastYearReportDataList){// 去年 同比
330 if (reportData3.getDepartId().equals(reportData.getDepartId())) { 330 if (reportData3.getDepartId().equals(reportData.getDepartId())) {
331 lastYearReportDataTemp = reportData3 ;break; 331 lastYearReportDataTemp = reportData3 ;break;
332 } 332 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!