修改getLogger lombook无法覆盖get方法

main
youHong.ai 2023-03-18 04:19:51 +08:00
parent a62038fda8
commit d776524824
1 changed files with 29 additions and 31 deletions

View File

@ -1,17 +1,16 @@
package weaver.bokang.xiao.xhny_report.schedule; package weaver.bokang.xiao.xhny_report.schedule;
import aiyh.utils.Util; import aiyh.utils.Util;
import aiyh.utils.action.CusBaseCronJob;
import aiyh.utils.annotation.ActionDesc; import aiyh.utils.annotation.ActionDesc;
import aiyh.utils.annotation.PrintParamMark; import aiyh.utils.annotation.PrintParamMark;
import aiyh.utils.annotation.RequiredMark; import aiyh.utils.annotation.RequiredMark;
import lombok.Data; import lombok.Data;
import org.apache.log4j.Logger;
import weaver.bokang.xiao.xhny_report.entity.SourceTrackingData; import weaver.bokang.xiao.xhny_report.entity.SourceTrackingData;
import weaver.bokang.xiao.xhny_report.entity.VendorMarkReport; import weaver.bokang.xiao.xhny_report.entity.VendorMarkReport;
import weaver.bokang.xiao.xhny_report.service.ScoreChainPattern; import weaver.bokang.xiao.xhny_report.service.ScoreChainPattern;
import weaver.bokang.xiao.xhny_report.service.chain.AbstractScoreChain; import weaver.bokang.xiao.xhny_report.service.chain.AbstractScoreChain;
import weaver.bokang.xiao.xhny_report.service.store.VendorStore; import weaver.bokang.xiao.xhny_report.service.store.VendorStore;
import weaver.interfaces.schedule.BaseCronJob;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -24,33 +23,32 @@ import java.util.List;
**/ **/
@Data @Data
@ActionDesc(value = "生成报表信息", author = "bokang.xiao") @ActionDesc(value = "生成报表信息", author = "bokang.xiao")
public class GenerateReportSchedule extends BaseCronJob { public class GenerateReportSchedule extends CusBaseCronJob {
private final Logger log = Util.getLogger();
@RequiredMark("报表模块id") @RequiredMark("报表模块id")
@PrintParamMark @PrintParamMark
private String reportModelId; private String reportModelId;
@Override @Override
public void execute() { public void runCode() {
try { try {
//必填参数校验 // 必填参数校验
Util.verifyRequiredField(this); Util.verifyRequiredField(this);
//公共参数初始化 // 公共参数初始化
VendorStore instance = VendorStore.getInstance(); VendorStore instance = VendorStore.getInstance();
instance.init(); instance.init();
//获取评分处理链 // 获取评分处理链
AbstractScoreChain scoreChain = ScoreChainPattern.getScoreChain(); AbstractScoreChain scoreChain = ScoreChainPattern.getScoreChain();
//处理数据初始化 // 处理数据初始化
List<VendorMarkReport> vendorMarkReportList = new ArrayList<>(); List<VendorMarkReport> vendorMarkReportList = new ArrayList<>();
SourceTrackingData sourceTrackingData = new SourceTrackingData(); SourceTrackingData sourceTrackingData = new SourceTrackingData();
//进行供应商评分 // 进行供应商评分
scoreChain.handle(vendorMarkReportList, sourceTrackingData); scoreChain.handle(vendorMarkReportList, sourceTrackingData);
//批量插入供应商报表数据 // 批量插入供应商报表数据
//todo 批量插入供应商报表数据 // todo 批量插入供应商报表数据
}catch (Exception e){ } catch (Exception e) {
log.error("定时任务执行异常 ==>"+Util.getErrString(e)); log.error("定时任务执行异常 ==>" + Util.getErrString(e));
} }
} }
} }