diff --git a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue index e1c9c7d..5f3d235 100644 --- a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue +++ b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue @@ -505,7 +505,7 @@ export default { }, tablexData: function () { return { - note: ['对应模块id(必填):填写正确的模块名称', + note: ['对应模块(必填):填写正确的模块名称', '中文名称(必填):与模块名称相同。', '英文名称(必填):与模块名称相同,填写模块名称的英文名称。', '实体状态:可填入值为[正常、停用、废弃],若不填写,默认为“正常”状态。', diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/tablex/service/impl/TablexServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/tablex/service/impl/TablexServiceImpl.java index 1fad2b0..9a6f4aa 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/tablex/service/impl/TablexServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/tablex/service/impl/TablexServiceImpl.java @@ -1,6 +1,7 @@ package org.jeecg.modules.tablex.service.impl; import org.jeecg.common.system.vo.LoginUser; +import org.jeecg.modules.modulex.service.IModulexService; import org.jeecg.modules.tablex.entity.Tablex; import org.jeecg.modules.tablex.mapper.TablexMapper; import org.jeecg.modules.tablex.service.ITablexService; @@ -29,6 +30,9 @@ public class TablexServiceImpl extends ServiceImpl impleme @Autowired private WebSocketUtils webSocketUtils; + @Autowired + private IModulexService modulexService; + @Override public void updateSql(String tableId, String sql) { tablexMapper.updateSql(tableId,sql); @@ -46,6 +50,7 @@ public class TablexServiceImpl extends ServiceImpl impleme Thread.sleep(1000L); message.put("uploaded", String.valueOf(i + 1)); this.save(tablexList.get(i)); + modulexService.setmodule(tablexList.get(i).getId(), tablexList.get(i).getModuleId()); webSocketUtils.sendMessage(loginUser.getId(), message); } catch (InterruptedException e) { log.error(e.getMessage(), e);