|
@ -116,6 +116,11 @@ public class MysqlToEsQuotaJob implements Job {
|
|
|
} else {
|
|
|
endTime = endTime + " 17:00:00";
|
|
|
}
|
|
|
if("2".equals(incrementInterval)){
|
|
|
endTime = DateUtil.getSundayOfThisDate(DateUtil.strToDateLong(endTime));
|
|
|
}else if("3".equals(incrementInterval)){
|
|
|
endTime= DateUtil.getLastDayOfMonth((DateUtil.strToDateLong(endTime)));
|
|
|
}
|
|
|
//初始化统计年份
|
|
|
this.year = getNowYearByDate(endTime);
|
|
|
//初始化开始时间
|
|
@ -132,7 +137,6 @@ public class MysqlToEsQuotaJob implements Job {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
this.quotaDate = DateUtil.strToDate(endTime, "yyyy-MM-dd");
|
|
|
this.wlyyJobCongId = map.getString("jobConfig");
|
|
|
this.quartzJobConfig = quartzJobConfigDao.findById(wlyyJobCongId);
|