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 {