|
@@ -12,6 +12,7 @@ import com.xxl.job.core.registry.RegistHelper;
|
12
|
12
|
import org.apache.commons.collections.CollectionUtils;
|
13
|
13
|
import org.apache.commons.lang.StringUtils;
|
14
|
14
|
import org.apache.commons.lang.time.DateUtils;
|
|
15
|
+import org.apache.commons.lang.time.FastDateFormat;
|
15
|
16
|
import org.quartz.CronExpression;
|
16
|
17
|
import org.quartz.SchedulerException;
|
17
|
18
|
import org.slf4j.Logger;
|
|
@@ -329,7 +330,11 @@ public class XxlJobServiceImpl implements IXxlJobService {
|
329
|
330
|
triggerCountFailTotal += dayFailCount;
|
330
|
331
|
}
|
331
|
332
|
} else {
|
332
|
|
- return new ReturnT<Map<String, Object>>(ReturnT.FAIL_CODE, null);
|
|
333
|
+ for (int i = 4; i > -1; i--) {
|
|
334
|
+ triggerDayList.add(FastDateFormat.getInstance("yyyy-MM-dd").format(DateUtils.addDays(new Date(), -i)));
|
|
335
|
+ triggerDayCountSucList.add(0);
|
|
336
|
+ triggerDayCountFailList.add(0);
|
|
337
|
+ }
|
333
|
338
|
}
|
334
|
339
|
|
335
|
340
|
Map<String, Object> result = new HashMap<String, Object>();
|