package com.njcn.prepare.harmonic.controller.newalgorithm;


import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.BizParamConstant;
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.NjcnDateUtils;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import com.njcn.prepare.harmonic.pojo.param.PrimaryGridParam;
import com.njcn.prepare.harmonic.service.mysql.newalgorithm.RQualityParameterMService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
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 com.njcn.web.controller.BaseController;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 监测指标数据质量问题汇总统计-月表 前端控制器
 * </p>
 *
 * @author wr
 * @since 2023-10-09
 */

@Slf4j
@RestController
@RequestMapping("/rQualityParameterM")
@Api(tags = "监测指标数据质量问题汇总统计")
@RequiredArgsConstructor
public class RQualityParameterMController extends BaseController {

    private final RQualityParameterMService rQualityParameterMService;


    @ApiOperation("监测指标数据质量问题汇总统计(r_quality_parameter_m表数据)")
    @ApiImplicitParam(value = "jobParam", name = "jobParam", required = true)
    @PostMapping("rQualityParameterMHandler")
    @OperateInfo(info = LogEnum.BUSINESS_MEDIUM)
    public HttpResult<Boolean> rQualityParameterMHandler(@RequestBody LineParam jobParam) {
        log.info(LocalDateTime.now() + "rQualityParameterMHandler开始执行");
        String methodDescribe = getMethodDescribe("rQualityParameterMHandler");
        rQualityParameterMService.rQualityParameterMHandler(jobParam);
        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);

    }
}

