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