清空配置并失效所有定时任务

This commit is contained in:
zhangwenqing
2019-05-07 10:41:17 +08:00
parent cd977ed81a
commit 1882d011cb
3 changed files with 17 additions and 1 deletions

View File

@@ -79,4 +79,8 @@ public interface SchedulerDao extends CrudDao<ScheduleCfg> {
*/
int updateScheduleExceNew(ScheduleExceInfo exceInfo);
/**
* 失效所有定时任务
*/
void inValidAllSchedule();
}

View File

@@ -364,6 +364,12 @@
compile_Id = #{compileId} and issue_status = #{issueStatus}
</update>
<update id="inValidAllSchedule">
update schedule_cfg
<set>
del_flag = 0
</set>
WHERE del_flag =1
</update>
</mapper>