mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
🐛 Fixing a bug. 定时任务新增自动初始化
This commit is contained in:
1 parent
90f31d178f
commit
4d60ca8600
1 file changed
+2
+2
@@ -103,6 +103,8 @@ public class SysJobController {
|
||||
@PreAuthorize("@pms.hasPermission('job_sys_job_add')")
|
||||
@Operation(description = "新增定时任务")
|
||||
public R save(@RequestBody SysJob sysJob) {
|
||||
// 初始化任务
|
||||
taskUtil.addOrUpateJob(sysJob, scheduler);
|
||||
sysJob.setJobStatus(PigxQuartzEnum.JOB_STATUS_RELEASE.getType());
|
||||
sysJob.setCreateBy(SecurityUtils.getUser().getUsername());
|
||||
return R.ok(sysJobService.save(sysJob));
|
||||
|
||||
Reference in new issue
Block a user