master
赵玉瑞 2 years ago
parent d8b0209df0
commit 457d052f82
  1. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java

@ -92,7 +92,7 @@ public class TaskController extends JeecgController<Task, ITaskService> {
@ApiOperation(value = "任务管理-添加", notes = "任务管理-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Task task) {
int count = taskService.count(new LambdaQueryWrapper<Task>().like(Task::getFunctionTemplateName, task.getFunctionTemplateName()));
int count = taskService.count(new LambdaQueryWrapper<Task>().eq(Task::getFunctionTemplateName, task.getFunctionTemplateName()));
if (count > 0) {
return Result.error("名字不能重复");
}

Loading…
Cancel
Save