mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
⚡ 优化 close #3459 创建重复定时任务检验失败不提示错误原因
This commit is contained in:
1 parent
97f6555841
commit
a09ebf7d9a
1 file changed
+2
-2
+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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user