WaterCountAnalysisNewController.java 4.7 KB
package com.skua.modules.dataAnalysis.controller;

import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.dataAnalysis.service.WaterCountAnalysisNewService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @ClassName waterAnalysisController
 * @Description 新水量分析
 * @Version 1.0
 */
@Slf4j
@Api(tags = "新水量分析")
@RestController
@RequestMapping("/analysisNew/waterCount")
public class WaterCountAnalysisNewController {
    @Autowired
    private WaterCountAnalysisNewService waterCountAnalysisNewService;
    /**
     * 查询年度总处理水量柱状图
     *
     * @return
     */
    @AutoLog(value = "查询年度总处理水量柱状图")
    @ApiOperation(value = "查询年度总处理水量柱状图", notes = "查询年度总处理水量柱状图")
    @RequestMapping(value = "/queryTotalSLData", method = RequestMethod.GET)
    public Result<Map<String, Object>> queryTotalSLData(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterCountAnalysisNewService.queryTotalSLData(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询年度总处理水量列表
     *
     * @return
     */
    @AutoLog(value = "查询年度总处理水量列表")
    @ApiOperation(value = "查询年度总处理水量列表", notes = "查询年度总处理水量列表")
    @RequestMapping(value = "/queryTotalSLList", method = RequestMethod.GET)
    public Result<Map<String, Object>> queryTotalSLList(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterCountAnalysisNewService.queryTotalSLList(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询处理水量列表
     *
     * @return
     */
    @AutoLog(value = "查询处理水量详情列表")
    @ApiOperation(value = "查询处理水量详情列表", notes = "查询处理水量详情列表")
    @RequestMapping(value = "/querySLDeatailList", method = RequestMethod.GET)
    public Result<Map<String, Object>> querySLDeatailList(String startTime,String endTime) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterCountAnalysisNewService.querySLDeatailList(startTime,endTime);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询处理水量波动情况分析
     *
     * @return
     */
    @AutoLog(value = "查询处理水量波动情况分析")
    @ApiOperation(value = "查询处理水量波动情况分析", notes = "查询处理水量波动情况分析")
    @RequestMapping(value = "/querySLAnalysis", method = RequestMethod.GET)
    public Result<Map<String, Object>> querySLAnalysis(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterCountAnalysisNewService.querySLAnalysis(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询运行负荷率分析
     *
     * @return
     */
    @AutoLog(value = "查询运行负荷率分析")
    @ApiOperation(value = "查询运行负荷率分析", notes = "查询运行负荷率分析")
    @RequestMapping(value = "/querySLFHLAnalysis", method = RequestMethod.GET)
    public Result<Map<String, Object>> querySLFHLAnalysis(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterCountAnalysisNewService.querySLFHLAnalysis(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }

    /**
     * 查询运行负荷率分析
     *
     * @return
     */
    @AutoLog(value = "查询自来水消耗量")
    @ApiOperation(value = "查询自来水消耗量", notes = "查询自来水消耗量")
    @RequestMapping(value = "/queryZLSAnalysis", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryZLSAnalysis(String time) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> list = waterCountAnalysisNewService.queryZLSAnalysis(time);
        result.setResult(list);
        result.setSuccess(true);
        return result;
    }
}