Commit 1b2afdd4 authored by zhoushiguang's avatar zhoushiguang

按天计算

parent 504d9a75
......@@ -192,7 +192,7 @@ public class OptimizeStatisticTask {
* 单点策略优化时长计算
*/
// @Scheduled(cron = "0 0/6 * * * * ")
//@Scheduled(cron = "0 20 3 * * * ")
@Scheduled(cron = "0 20 3 * * * ")
public void optimizeDurationCal() {
long st = System.currentTimeMillis();
......@@ -200,8 +200,9 @@ public class OptimizeStatisticTask {
//路口策略下方记录
Date nowDate = cn.hutool.core.date.DateUtil.date();
Date beginOfDay = cn.hutool.core.date.DateUtil.lastWeek();//.beginOfDay(nowDate);
beginOfDay = cn.hutool.core.date.DateUtil.beginOfWeek(beginOfDay);
Date beginOfDay = cn.hutool.core.date.DateUtil.beginOfDay(nowDate);//.lastWeek();//
//beginOfDay = cn.hutool.core.date.DateUtil.beginOfWeek(beginOfDay);
Date endOfDay = cn.hutool.core.date.DateUtil.endOfDay(nowDate);//DateUtil.endOfDay(DateUtil.date());
while (beginOfDay.before(endOfDay)) {
......
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