⚡ 优化 close #3459 创建重复定时任务检验失败不提示错误原因

This commit is contained in:
lbw committed 2021-12-16 17:41:25 +08:00
1 parent 97f6555841
commit a09ebf7d9a
1 file changed
+2 -2
@@ -274,8 +274,8 @@ public class SysJobController {
@ApiOperation(value = "检验任务名称和任务组联合是否唯一")
public R isValidTaskName(@RequestParam String jobName, @RequestParam String jobGroup) {
return this.sysJobService
.count(Wrappers.query(SysJob.builder().jobName(jobName).jobGroup(jobGroup).build())) > 0 ? R.failed()
: R.ok();
.count(Wrappers.query(SysJob.builder().jobName(jobName).jobGroup(jobGroup).build())) > 0
? R.failed("任务重复,请检查此组内是否已包含同名任务") : R.ok();
}
}