| | |
| | | @GetMapping("/energyConsumptionSummation") |
| | | public AjaxResult energyConsumptionSummation(String timeType) { |
| | | try { |
| | | String modelcode = "COMPREHENSIVE_CODE"; |
| | | String modelcode = "LBJT"; |
| | | return AjaxResult.success(homepageService.energyConsumptionSummation(timeType, modelcode)); |
| | | } catch (Exception ex) { |
| | | logger.error("获取出错!", ex); |
| | |
| | | @GetMapping("/energyConsumptionTrend") |
| | | public AjaxResult energyConsumptionTrend(String timeType) { |
| | | try { |
| | | String modelcode = "COMPREHENSIVE_CODE"; |
| | | String modelcode = "LBJT"; |
| | | HomeEnergyConsumptionTrendVO vo = homepageService.energyConsumptionTrend(timeType, modelcode); |
| | | |
| | | return AjaxResult.success(vo); |
| | |
| | | @GetMapping("/energyConsumptionRanking") |
| | | public AjaxResult energyConsumptionRanking(String timeType) { |
| | | try { |
| | | String modelcode = "COMPREHENSIVE_CODE"; |
| | | String modelcode = "LBJT"; |
| | | List<RankingEnergyData> consumptionAnalysisVO = homepageService.energyConsumptionRanking(modelcode, timeType); |
| | | return AjaxResult.success(consumptionAnalysisVO); |
| | | } catch (Exception ex) { |
| | |
| | | @GetMapping("/peakValley") |
| | | public AjaxResult peakValley(String timeType) { |
| | | try { |
| | | String modelcode = "COMPREHENSIVE_CODE"; |
| | | String modelcode = "LBJT"; |
| | | List<HomePeakValleyVO> vo = homepageService.peakValley(timeType, modelcode); |
| | | return AjaxResult.success(vo); |
| | | } catch (Exception ex) { |