|
@ -48,7 +48,6 @@ public class JobService {
|
|
|
if (breakPoint(quartzJobConfig, j)) continue;
|
|
|
quartzHelper.removeJob(quartzJobConfig.getId() + "-" + j);
|
|
|
wlyyJobConfigDao.updateStatus(quartzJobConfig.getId(), "0");
|
|
|
;
|
|
|
}
|
|
|
} else {
|
|
|
throw new Exception("任务已经停止");
|
|
@ -148,7 +147,11 @@ public class JobService {
|
|
|
}
|
|
|
|
|
|
private boolean breakPoint(QuartzJobConfig wlyyJobConfigVO, int i) {
|
|
|
if (Integer.valueOf(wlyyJobConfigVO.getId()) > 86 && i == 2) {
|
|
|
if (StringUtils.isEmpty(wlyyJobConfigVO.getTimeLevel()) || Integer.valueOf(wlyyJobConfigVO.getTimeLevel()) == 3) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (!(StringUtils.isEmpty(wlyyJobConfigVO.getTimeLevel())) && Integer.valueOf(wlyyJobConfigVO.getTimeLevel()) == i) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|