From 5ac0ae0c33189881c0639a752b36141f24d83081 Mon Sep 17 00:00:00 2001 From: luogw <3132758203@qq.com> Date: Tue, 28 Jul 2026 11:20:51 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ClassicCategoryApplicationServiceImpl.java | 8 ++++---- src/main/resources/application-test.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/project/classicpaper/application/impl/ClassicCategoryApplicationServiceImpl.java b/src/main/java/com/project/classicpaper/application/impl/ClassicCategoryApplicationServiceImpl.java index c3d21a5..7b4d0fe 100644 --- a/src/main/java/com/project/classicpaper/application/impl/ClassicCategoryApplicationServiceImpl.java +++ b/src/main/java/com/project/classicpaper/application/impl/ClassicCategoryApplicationServiceImpl.java @@ -187,9 +187,9 @@ public class ClassicCategoryApplicationServiceImpl implements ClassicCategoryApp dto.setParentId(0L); } } - // 名称去重(同父级下不可重名) + // 名称去重(同父级下不可重名,区分大小写) LambdaQueryWrapper duplicateQuery = new LambdaQueryWrapper() - .eq(ClassicCategoryEntity::getName, dto.getName()) + .apply("BINARY name = {0}", dto.getName()) .eq(ClassicCategoryEntity::getParentId, dto.getParentId()); if (dto.getId() != null) { duplicateQuery.ne(ClassicCategoryEntity::getId, dto.getId()); @@ -227,9 +227,9 @@ public class ClassicCategoryApplicationServiceImpl implements ClassicCategoryApp return Result.success(entity.toDTO(ClassicCategoryDTO::new)); } - // 4. 同父级下重名校验 + // 4. 同父级下重名校验(区分大小写) LambdaQueryWrapper duplicateQuery = new LambdaQueryWrapper() - .eq(ClassicCategoryEntity::getName, name) + .apply("BINARY name = {0}", name) .eq(ClassicCategoryEntity::getParentId, entity.getParentId()) .ne(ClassicCategoryEntity::getId, id); if (classicCategoryBaseService.count(duplicateQuery) > 0) { diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 7d49b35..f1feb73 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -67,8 +67,8 @@ analysis: url: /word/parse dataExtract: url: http://127.0.0.1:8002/ai-check/api/documents-parse - callback-url: http://127.0.0.1:7088/api/interaction/dataExtractCallback -ding: + callback-url: http://127.0.0.1/evaluator-api/api/interaction/dataExtractCallback + ding: appKey: dinggl2ktuhdhoczkg2o appSecret: nK104mgXPbkCWjX1I-EcYiubjM0FJAYcfqBKPkVcyvrBsLMF9XK1g9Qd_QVOndcK agentId: 4283077101