package com.njcn.executor.handler;

import com.njcn.common.pojo.constant.BizParamConstant;
import com.njcn.executor.utils.CommonExecutorUtils;
import com.njcn.prepare.harmonic.api.line.RMpDevEvaluateDetailFeignClient;
import com.njcn.prepare.harmonic.api.line.RStatOrgFeignClient;
import com.njcn.prepare.harmonic.pojo.param.DeviceParam;
import com.njcn.prepare.harmonic.pojo.param.OrgParam;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * pqs
 * 终端数据评价_日统计
 * @author zbj
 * @date 2023/07/07
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class RMpDevEvaluateDetailJob {

    private final RMpDevEvaluateDetailFeignClient rMpDevEvaluateDetailFeignClient;

    @XxlJob("rMpDevEvaluateDetailDHandler")
    public void  rMpDevEvaluateDetailDHandler(){
        log.info(LocalDateTime.now()+"终端数据评价_日统计------------------------");
        DeviceParam deviceParam = new DeviceParam();
        deviceParam.setDataDate(CommonExecutorUtils.prepareTimeDeal(BizParamConstant.STAT_BIZ_DAY));
        CommonExecutorUtils.commDefineDateObj(BizParamConstant.STAT_BIZ_DAY,deviceParam);
        rMpDevEvaluateDetailFeignClient.handler(deviceParam);
    }
}
