From 457d052f822f0127dfc94e0a3c00182f5eab7fdb Mon Sep 17 00:00:00 2001 From: mors <3067699729@qq.com> Date: Thu, 25 May 2023 16:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/modules/task/controller/TaskController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("名字不能重复"); }