//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.harmonic.pojo.param.HarmonicPublicParam;
//import com.njcn.harmonic.pojo.vo.HarmonicDeptVO;
//import com.njcn.harmonic.pojo.vo.HarmonicLineVO;
//import com.njcn.harmonic.pojo.vo.HarmonicSubstationVO;
//import com.njcn.harmonic.pojo.vo.PollutionVO;
//import com.njcn.harmonic.service.IHarmonicService;
//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.*;
//
//import java.util.List;
//import java.util.Objects;
//
///**
// * 类的介绍：
// *
// * @author xuyang
// * @version 1.0.0
// * @createTime 2022/2/23 10:39
// */
//@Validated
//@Slf4j
//@RestController
//@RequestMapping("/harmonic")
//@Api(tags = "谐波统计")
//@AllArgsConstructor
//public class HarmonicController extends BaseController {
//
//    private final IHarmonicService harmonicService;
//
//    @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 = harmonicService.getDeptSubstationRelations(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//
//    @OperateInfo(info = LogEnum.BUSINESS_COMMON)
//    @PostMapping("/deptInfo")
//    @ApiOperation("部门列表")
//    @ApiImplicitParam(name = "param", value = "实体参数", required = true)
//    public HttpResult<List<HarmonicDeptVO>> deptInfo(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("deptInfo");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<HarmonicDeptVO> list = harmonicService.getDeptInfo(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<HarmonicSubstationVO>> getSubstationInfoById(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getSubstationInfoById");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<HarmonicSubstationVO> list = harmonicService.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<HarmonicLineVO>> getLineInfoById(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getLineInfoById");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<HarmonicLineVO> list = harmonicService.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<HarmonicLineVO>> getLineRank(@RequestBody HarmonicPublicParam param) {
//        String methodDescribe = getMethodDescribe("getLineRank");
//        LogUtil.njcnDebug(log, "{}，实体参数：{}", methodDescribe, param);
//        List<HarmonicLineVO> list = harmonicService.getLineRank(param);
//        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
//    }
//}
