新增返回警告消息提示

This commit is contained in:
RuoYi
2022-10-30 13:04:31 +08:00
parent b3f9e1f2de
commit 8f4ac612c8
21 changed files with 163 additions and 113 deletions

View File

@@ -72,7 +72,7 @@ public class SysJobController extends BaseController
@GetMapping(value = "/{jobId}")
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
{
return AjaxResult.success(jobService.selectJobById(jobId));
return success(jobService.selectJobById(jobId));
}
/**
@@ -181,6 +181,6 @@ public class SysJobController extends BaseController
public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException
{
jobService.deleteJobByIds(jobIds);
return AjaxResult.success();
return success();
}
}

View File

@@ -63,7 +63,7 @@ public class SysJobLogController extends BaseController
@GetMapping(value = "/{configId}")
public AjaxResult getInfo(@PathVariable Long jobLogId)
{
return AjaxResult.success(jobLogService.selectJobLogById(jobLogId));
return success(jobLogService.selectJobLogById(jobLogId));
}
/**
@@ -86,6 +86,6 @@ public class SysJobLogController extends BaseController
public AjaxResult clean()
{
jobLogService.cleanJobLog();
return AjaxResult.success();
return success();
}
}