//package com.njcn.harmonic.controller;
//
//import com.njcn.common.pojo.annotation.OperateInfo;
//import com.njcn.common.pojo.enums.common.LogEnum;
//import com.njcn.common.pojo.enums.response.CommonResponseEnum;
//import com.njcn.common.pojo.response.HttpResult;
//import com.njcn.common.utils.HttpResultUtil;
//import com.njcn.common.utils.LogUtil;
//import com.njcn.device.pojo.dto.PollutionLineDTO;
//import com.njcn.device.pojo.dto.PollutionSubstationDTO;
//import com.njcn.harmonic.pojo.param.HarmonicPublicParam;
//import com.njcn.harmonic.pojo.vo.PollutionVO;
//import com.njcn.harmonic.service.IPollutionService;
//import com.njcn.web.controller.BaseController;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * 类的介绍：电能质量污区图
// *
// * @author xuyang
// * @version 1.0.0
// * @createTime 2022/2/21 15:59
// */
//@Validated
//@Slf4j
//@RestController
//@RequestMapping("/pollution")
//@Api(tags = "电能质量污区图")
//@AllArgsConstructor
//public class PollutionController extends BaseController {
//
//    private final IPollutionService pollutionService;
//
//    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
//    @PostMapping("/deptSubstationRelations")
//    @ApiOperation("部门变电站关系")
//    @ApiImplicitParam(name = "param", value = "实体参数", required = true)
//    public HttpResult<List<PollutionVO>> deptSubstationRelations(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("deptSubstationRelations");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<PollutionVO> list = pollutionService.getDeptSubstationRelations(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//
//    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
//    @PostMapping("/getSubstationInfoById")
//    @ApiOperation("根据部门获取变电站详情")
//    @ApiImplicitParam(name = "param", value = "部门参数", required = true)
//    public HttpResult<List<PollutionSubstationDTO>> getSubstationInfoById(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getSubstationInfoById");
//        LogUtil.njcnDebug(log, "{}，部门参数：{}", methodDescribe, param);
//        List<PollutionSubstationDTO> list = pollutionService.getSubstationInfoById(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//
//    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
//    @PostMapping("/getLineInfoById")
//    @ApiOperation("根据变电站获取监测点详情")
//    @ApiImplicitParam(name = "param", value = "变电站参数", required = true)
//    public HttpResult<List<PollutionLineDTO>> getLineInfoById(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getLineInfoById");
//        LogUtil.njcnDebug(log, "{}，变电站参数：{}", methodDescribe, param);
//        List<PollutionLineDTO> list = pollutionService.getLineInfoById(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//
//    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
//    @PostMapping("/getLineRank")
//    @ApiOperation("获取前十监测点排名")
//    @ApiImplicitParam(name = "param", value = "实体参数", required = true)
//    public HttpResult<List<PollutionLineDTO>> getLineRank(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getLineRank");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<PollutionLineDTO> list = pollutionService.getLineRank(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//
//
//
//}
