From a63d09445049077386d1e2067f329526c5905b9a Mon Sep 17 00:00:00 2001 From: guilongma <3307671311@qq.com> Date: Mon, 31 Jul 2023 11:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AF=BC=E5=85=A5=E5=89=8D?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=B8=AD=E6=96=87=E5=90=8D=E7=A7=B0=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E5=90=8D=E9=87=8D=E5=A4=8D=EF=BC=8C=E6=9C=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/FunctionXTestServiceImpl.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/service/impl/FunctionXTestServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/service/impl/FunctionXTestServiceImpl.java index 6c0f80f..7542909 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/service/impl/FunctionXTestServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/service/impl/FunctionXTestServiceImpl.java @@ -168,18 +168,18 @@ public class FunctionXTestServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(username != null, FunctionxTest::getCreatName, username); - List list = this.list(queryWrapper); - int isSaveTestSuccess = saveTest(listVo); - if (isSaveTestSuccess != -1){ - this.remove(queryWrapper); - message.put("isError", "true"); - message.put("status", "第" + (isSaveTestSuccess+1) + "行中文名或英文名有重复"); - message.put("closeable", "true"); - webSocketUtils.sendMessage(loginUser.getId(), message); - return Result.error("中文名或英文名有重复"); - } + List list = this.list(queryWrapper); +// if (isSaveTestSuccess != -1){ +// this.remove(queryWrapper); +// message.put("isError", "true"); +// message.put("status", "第" + (isSaveTestSuccess+1) + "行中文名或英文名有重复"); +// message.put("closeable", "true"); +// webSocketUtils.sendMessage(loginUser.getId(), message); +// return Result.error("中文名或英文名有重复"); +// } + message.put("status", "数据校验"); webSocketUtils.sendMessage(loginUser.getId(), message); @@ -669,7 +669,7 @@ public class FunctionXTestServiceImpl extends ServiceImpl listVo) { for (int i = 0; i < listVo.size(); i++) { try {