| | |
| | | public AjaxResult energyConsumptionSummationDay() { |
| | | try { |
| | | String timeType = "DAY"; |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | return AjaxResult.success(homepageService.energyConsumptionSummation(timeType,modelCode)); |
| | | } catch (Exception ex) { |
| | | logger.error("获取出错!", ex); |
| | |
| | | @GetMapping("/energyConsumptionSummation") |
| | | public AjaxResult energyConsumptionSummation(String timeType) { |
| | | try { |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | return AjaxResult.success(statisticService.energyConsumptionSummation(timeType,modelCode)); |
| | | } catch (Exception ex) { |
| | | logger.error("获取出错!", ex); |
| | |
| | | public AjaxResult factoryEnergyConsumption() { |
| | | try { |
| | | String timeType = "MONTH"; |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | FactoryEnergyConsumptionVo vo=statisticService.factoryEnergyConsumption(timeType,modelCode); |
| | | return AjaxResult.success(vo); |
| | | } catch (Exception ex) { |
| | |
| | | @GetMapping("/segmentAnalysis/year") |
| | | public AjaxResult segmentAnalysisMonth() { |
| | | PeakValleyDTO dto =new PeakValleyDTO(); |
| | | dto.setModelCode("COMPREHENSIVE_CODE"); |
| | | dto.setModelCode("LBJT"); |
| | | dto.setTimeType("YEAR"); |
| | | dto.setQueryTime(new Date()); |
| | | return AjaxResult.success(statisticService.segmentAnalysisMonth(dto)); |
| | |
| | | @GetMapping("/segmentAnalysis/month") |
| | | public AjaxResult segmentAnalysisDay() { |
| | | PeakValleyDTO dto =new PeakValleyDTO(); |
| | | dto.setModelCode("COMPREHENSIVE_CODE"); |
| | | dto.setModelCode("LBJT"); |
| | | dto.setTimeType("MONTH"); |
| | | dto.setQueryTime(new Date()); |
| | | return AjaxResult.success(statisticService.segmentAnalysisDay(dto)); |
| | |
| | | @GetMapping("/segmentAnalysis/day") |
| | | public AjaxResult segmentAnalysisHour() { |
| | | PeakValleyDTO dto =new PeakValleyDTO(); |
| | | dto.setModelCode("COMPREHENSIVE_CODE"); |
| | | dto.setModelCode("LBJT"); |
| | | dto.setTimeType("DAY"); |
| | | dto.setQueryTime(new Date()); |
| | | return AjaxResult.success(statisticService.segmentAnalysisHour(dto)); |
| | |
| | | @GetMapping("/purchaseConsumption") |
| | | public AjaxResult purchaseConsumption() { |
| | | String timeType="MONTH"; |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | List<PurchaseConsumptionVo> consumptionAnalysisVO = statisticService.purchaseConsumption(modelCode,timeType); |
| | | return AjaxResult.success(consumptionAnalysisVO); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/energyConsumptionRanking") |
| | | public AjaxResult energyConsumptionRanking(String timeType) { |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | List<RankingEnergyData> consumptionAnalysisVO = statisticService.energyConsumptionRanking(modelCode,timeType); |
| | | return AjaxResult.success(consumptionAnalysisVO); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/costProp") |
| | | public AjaxResult costProp(String timeType) { |
| | | String modelCode = "COMPREHENSIVE_CODE"; |
| | | String modelCode = "LBJT"; |
| | | List<PurchaseConsumptionVo> consumptionAnalysisVO = statisticService.costProp(modelCode, timeType); |
| | | return AjaxResult.success(consumptionAnalysisVO); |
| | | |
| | |
| | | @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) { |