WaterAnalysisNewController.java 6.0 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.impl.WaterAnalysisNewService;
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/water")
public class WaterAnalysisNewController {
    @Autowired
    private WaterAnalysisNewService waterAnalysisNewService;
    /**
     * 查询达标率总体达标情况
     *
     * @return
     */
    @AutoLog(value = "查询达标率总体达标情况")
    @ApiOperation(value = "查询达标率总体达标情况", notes = "查询达标率总体达标情况")
    @RequestMapping(value = "/queryTotalBySummary", method = RequestMethod.GET)
    public Result<Map<String, Object>> queryTotalBySummary(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterAnalysisNewService.queryTotalBySummary(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询达标率厂站列表
     *
     * @return
     */
    @AutoLog(value = "查询达标率厂站列表")
    @ApiOperation(value = "查询达标率厂站列表", notes = "查询达标率厂站列表")
    @RequestMapping(value = "/queryFacListBySummary", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryFacListBySummary(String time) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> data = waterAnalysisNewService.queryFacListBySummary(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询出水指标超标次数
     *
     * @return
     */
    @AutoLog(value = "查询出水指标超标次数")
    @ApiOperation(value = "查询出水指标超标次数", notes = "查询出水指标超标次数")
    @RequestMapping(value = "/queryNoSummaryCount", method = RequestMethod.GET)
    public Result<Map<String, Object>> queryNoSummaryCount(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterAnalysisNewService.queryNewSummaryCount(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询出水指标超标次数列表
     *
     * @return
     */
    @AutoLog(value = "查询出水指标超标次数列表")
    @ApiOperation(value = "查询出水指标超标次数列表", notes = "查询出水指标超标次数列表")
    @RequestMapping(value = "/queryNoSummaryList", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryNoSummaryList(String time) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> data = waterAnalysisNewService.queryNoSummaryList(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询出水水质指标特征分析
     *
     * @return
     */
    @AutoLog(value = "查询出水水质指标特征分析")
    @ApiOperation(value = "查询出水水质指标特征分析", notes = "查询出水水质指标特征分析")
    @RequestMapping(value = "/queryCSAnalysis", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryCSAnalysis(String time) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> data = waterAnalysisNewService.queryCSAnalysis(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询出水水质指标特征分析厂站列表
     *
     * @return
     */
    @AutoLog(value = "查询出水水质指标特征分析厂站列表")
    @ApiOperation(value = "查询出水水质指标特征分析厂站列表", notes = "查询出水水质指标特征分析厂站列表")
    @RequestMapping(value = "/queryCSAnalysisFacList", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryCSAnalysisFacList(String time,String code) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> data = waterAnalysisNewService.queryCSAnalysisFacList(time,code);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询水质指标去除率
     *
     * @return
     */
    @AutoLog(value = "查询水质指标去除率")
    @ApiOperation(value = "查询水质指标去除率", notes = "查询水质指标去除率")
    @RequestMapping(value = "/queryWaterQCL", method = RequestMethod.GET)
    public Result<Map<String, Object>> queryWaterQCL(String time) {
        Result<Map<String, Object>> result = new Result<>();
        Map<String, Object> data = waterAnalysisNewService.queryWaterQCL(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
    /**
     * 查询各厂指标去除率详细数据
     *
     * @return
     */
    @AutoLog(value = "查询各厂指标去除率详细数据")
    @ApiOperation(value = "查询各厂指标去除率详细数据", notes = "查询各厂指标去除率详细数据")
    @RequestMapping(value = "/queryFacListWaterQCL", method = RequestMethod.GET)
    public Result<List<Map<String, Object>>> queryFacListWaterQCL(String time) {
        Result<List<Map<String, Object>>> result = new Result<>();
        List<Map<String, Object>> data = waterAnalysisNewService.queryFacListWaterQCL(time);
        result.setResult(data);
        result.setSuccess(true);
        return result;
    }
}