From 5a001d23ec9ece1e472ce5f0aa343c80d8e60d8d Mon Sep 17 00:00:00 2001 From: itcast Date: Mon, 31 Jul 2023 14:26:23 +0800 Subject: [PATCH] Changes --- .../org/jeecg/modules/fieldx/controller/FieldxController.java | 1 + .../jeecg/modules/fieldx/service/impl/FieldxServiceImpl.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java index 57492f5..f114e95 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java @@ -689,6 +689,7 @@ public class FieldxController extends JeecgController { message.put("isError", "true"); message.put("status","单元格样式错误,请根据注意事项保证单元格样式正确"); message.put("closeable","true"); + fieldx222Service.remove(null); webSocketUtils.sendMessage(loginUser.getId(), message); } return Result.OK("文件上传成功"); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/service/impl/FieldxServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/service/impl/FieldxServiceImpl.java index 781f50c..929f1f6 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/service/impl/FieldxServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/service/impl/FieldxServiceImpl.java @@ -40,10 +40,14 @@ public class FieldxServiceImpl extends ServiceImpl impleme Thread.sleep(500L); message.put("uploaded", String.valueOf(i + 1)); this.save(fieldxList.get(i)); + Tablex tablex = tablexService.getById(fieldxList.get(i).getTableId()); + tablexService.updateVersion(fieldxList.get(i).getTableId(), tablex.getVerison() + 1); + tablexService.updateSql(fieldxList.get(i).getTableId(), fieldxController.createSql(fieldxList.get(i).getTableId())); webSocketUtils.sendMessage(loginUser.getId(), message); } catch (InterruptedException e) { log.error(e.getMessage(), e); } } } + }