diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java index df52422..cec631c 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java +++ b/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 { @ApiOperation(value = "任务管理-添加", notes = "任务管理-添加") @PostMapping(value = "/add") public Result add(@RequestBody Task task) { - int count = taskService.count(new LambdaQueryWrapper().like(Task::getFunctionTemplateName, task.getFunctionTemplateName())); + int count = taskService.count(new LambdaQueryWrapper().eq(Task::getFunctionTemplateName, task.getFunctionTemplateName())); if (count > 0) { return Result.error("名字不能重复"); }