mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
♻️ Refactoring code. 任务新增后执行初始化
This commit is contained in:
1 parent
5cbee1e4d3
commit
2db49a2806
1 file changed
+2
-1
+2
-1
@@ -105,7 +105,8 @@ public class SysJobController {
|
||||
public R save(@RequestBody SysJob sysJob) {
|
||||
sysJob.setJobStatus(PigxQuartzEnum.JOB_STATUS_RELEASE.getType());
|
||||
sysJob.setCreateBy(SecurityUtils.getUser().getUsername());
|
||||
return R.ok(sysJobService.save(sysJob));
|
||||
this.taskUtil.removeJob(sysJob, scheduler);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user