改为计算上一周
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ class CityInfoAnaBatch extends BaseBatch {
|
||||
// 当期周末
|
||||
Date weekend = DateUtil.getFirstDayOfWeek(new Date());
|
||||
//周日开始跑,需要跑加上7天,周一跑不需要
|
||||
weekend = DateUtil.add(weekend, 7)
|
||||
// weekend = DateUtil.add(weekend, 7)
|
||||
Date laseWeekend = DateUtil.getFirstDayOfWeek(weekend);
|
||||
println "开始分析:" + DateUtil.formatToTightYYYYMMDDhhmmss(weekend)
|
||||
DBObject cityQuery = new BasicDBObject('status', new BasicDBObject('$in', [0, 2]))
|
||||
|
||||
Reference in New Issue
Block a user