Commit 9f75e705 authored by hanfeng's avatar hanfeng

Merge branch 'master-order-statistics' into dev

parents 96ea0794 4aaa4095
......@@ -57,10 +57,13 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
}
log.info("获取到当前需要执行的日期,距离当前时间的天数集合" + arrayList);
XxlJobLogger.log("获取到当前需要执行的日期,距离当前时间的天数集合" + arrayList);
DateTime now = DateTime.now();
for (Integer day : arrayList) {
boolean flag = statisticsBiz.statisticalOrder(day);
log.info("执行状态:" + day+"="+flag);
XxlJobLogger.log("执行状态:" + day+"="+flag);
DateTime dateTime = now.plusDays(day);
log.info("执行状态:" + dateTime+"="+flag);
XxlJobLogger.log("执行状态:" + dateTime+"="+flag);
}
return new ReturnT<>(ReturnT.SUCCESS_CODE,"执行成功");
......
......@@ -75,7 +75,7 @@ public class ServiceTest {
@Test
public void handlerTeset() {
handler.execute("2019-10-12");
handler.execute(null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment