mqh更新导入实体功能部分代码

dev
mqh 1 year ago
parent 87ac223556
commit 9a0b7b5157
  1. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/tablex/controller/TablexController.java

@ -300,7 +300,7 @@ public class TablexController extends JeecgController<Tablex, ITablexService> {
params.setHeadRows(1);//表头行数,默认1 params.setHeadRows(1);//表头行数,默认1
params.setNeedSave(true);//是否需要保存上传的Excel,默认为false params.setNeedSave(true);//是否需要保存上传的Excel,默认为false
List<TablexVo> list = null; List<TablexVo> list = null;
message.put("status", "数据预读入"); message.put("status", "读取数据中");
webSocketUtils.sendMessage(loginUser.getId(), message); webSocketUtils.sendMessage(loginUser.getId(), message);
try { try {
//读取excel数据 //读取excel数据
@ -451,6 +451,6 @@ public class TablexController extends JeecgController<Tablex, ITablexService> {
} }
message.put("isVisible", "false"); message.put("isVisible", "false");
webSocketUtils.sendMessage(loginUser.getId(), message); webSocketUtils.sendMessage(loginUser.getId(), message);
return Result.OK("文件导入成功!"); return Result.ok("文件导入成功!");
} }
} }

Loading…
Cancel
Save