mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
🐛 Fixing a bug. 修复新增定时任务不显示的问题
This commit is contained in:
1 parent
29019e0672
commit
f5acc1324c
1 file changed
+3
-2
+3
-2
@@ -103,10 +103,11 @@ 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());
|
||||
this.taskUtil.removeJob(sysJob, scheduler);
|
||||
return R.ok();
|
||||
return R.ok(sysJobService.save(sysJob));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user