//package com.njcn.system.timer.tasks.report;
//
//import cn.hutool.core.date.DatePattern;
//import cn.hutool.core.date.DateTime;
//import cn.hutool.core.date.DateUtil;
//import cn.hutool.core.util.StrUtil;
//import com.njcn.harmonic.api.ReportFeignClient;
//import com.njcn.prepare.harmonic.api.line.CustomReportFeignClient;
//import com.njcn.prepare.harmonic.pojo.param.LineParam;
//import com.njcn.system.timer.TimerTaskRunner;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * 自定义报表预处理
// */
//@Component
//@RequiredArgsConstructor
//@Slf4j
//public class CustomReportRunner implements TimerTaskRunner {
//
//    private final CustomReportFeignClient customReportFeignClient;
//
//
//    @Override
//    public void action(String date) {
//        LineParam lineParam = new LineParam();
//        if(StrUtil.isNotBlank(date)){
//            lineParam.setDataDate(date);
//        }else {
//            DateTime dealDate = DateUtil.yesterday();
//            String end = DateUtil.format(dealDate, DatePattern.NORM_DATE_PATTERN);
//            lineParam.setDataDate(end);
//        }
//        customReportFeignClient.batchReport(lineParam);
//    }
//}
