From 09ef6558ae88fcd0a056d76e37411c6e9b62e715 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Sun, 28 Jun 2026 21:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=AD=97=E5=85=B8=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/DictDataController.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/gxwebsoft/common/system/controller/DictDataController.java b/src/main/java/com/gxwebsoft/common/system/controller/DictDataController.java index 39d8e70..f0c03e0 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/DictDataController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/DictDataController.java @@ -61,11 +61,11 @@ public class DictDataController extends BaseController { .eq(DictData::getDictDataName, dictData.getDictDataName())) > 0) { return fail("字典数据名称已存在"); } - if (dictDataService.count(new LambdaQueryWrapper() - .eq(DictData::getDictId, dictData.getDictId()) - .eq(DictData::getDictDataCode, dictData.getDictDataCode())) > 0) { - return fail("字典数据标识已存在"); - } +// if (dictDataService.count(new LambdaQueryWrapper() +// .eq(DictData::getDictId, dictData.getDictId()) +// .eq(DictData::getDictDataCode, dictData.getDictDataCode())) > 0) { +// return fail("字典数据标识已存在"); +// } // 自动添加字典 final int count = dictService.count(new LambdaQueryWrapper().eq(Dict::getDictCode, dictData.getDictCode())); if (dictData.getDictCode() != null && count == 0) { @@ -95,12 +95,12 @@ public class DictDataController extends BaseController { .ne(DictData::getDictDataId, dictData.getDictDataId())) > 0) { return fail("字典数据名称已存在"); } - if (dictDataService.count(new LambdaQueryWrapper() - .eq(DictData::getDictId, dictData.getDictId()) - .eq(DictData::getDictDataCode, dictData.getDictDataCode()) - .ne(DictData::getDictDataId, dictData.getDictDataId())) > 0) { - return fail("字典数据标识已存在"); - } +// if (dictDataService.count(new LambdaQueryWrapper() +// .eq(DictData::getDictId, dictData.getDictId()) +// .eq(DictData::getDictDataCode, dictData.getDictDataCode()) +// .ne(DictData::getDictDataId, dictData.getDictDataId())) > 0) { +// return fail("字典数据标识已存在"); +// } if (dictDataService.updateById(dictData)) { return success("修改成功"); }