🐛 Fixing a bug. 修复新增定时任务不显示的问题

This commit is contained in:
lbw committed 2023-12-03 23:44:09 +08:00
1 parent 29019e0672
commit f5acc1324c
1 file changed
+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));
}
/**