liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.dingzhuo.energy.project.energyShareAnalysis.controller;
 
import com.dingzhuo.energy.framework.web.controller.BaseController;
import com.dingzhuo.energy.framework.web.domain.AjaxResult;
import com.dingzhuo.energy.project.energyShareAnalysis.domain.dto.EnergyAnalysisDTO;
import com.dingzhuo.energy.project.energyShareAnalysis.domain.vo.EnergyAnalysisVO;
import com.dingzhuo.energy.project.energyShareAnalysis.service.IEnergyShareAnalysisService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
 
/**
 * 能耗占比分析 控制层
 */
@RestController
@RequestMapping("/energyShareAnalysis")
public class EnergyShareAnalysisController extends BaseController {
 
    @Autowired
    private IEnergyShareAnalysisService analysisService;
 
 
    @GetMapping("/getElectricityShareAnalysis")
    @ApiOperation(value = "获取电占比统计信息", notes = "获取电占比统计信息")
    public AjaxResult listElectricityShareAnalysis(@Validated EnergyAnalysisDTO dto) {
 
        List<EnergyAnalysisVO> yoyList = analysisService.listEnergyShareAnalysis(dto);
        return AjaxResult.success(yoyList);
    }
 
}