From e8043769aaec9c3d9ee6aa8cad6fb37edc2e872f Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Mon, 6 Feb 2023 20:14:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E4=BB=A3=E7=A0=81=E7=94=9F?=
 =?UTF-8?q?=E6=88=90=E6=A8=A1=E6=9D=BF=20menu=5Fid=20=E4=B8=A2=E5=A4=B1?=
 =?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ruoyi/project/tool/gen/service/GenTableServiceImpl.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java b/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java
index 4e8d500..83e7a85 100644
--- a/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java
+++ b/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java
@@ -244,6 +244,9 @@ public class GenTableServiceImpl implements IGenTableService
     {
         // 查询表信息
         GenTable table = genTableMapper.selectGenTableByName(tableName);
+        // 获取菜单id序列,用于生成菜单sql语句
+        long menuId = genTableMapper.selectMenuId();
+        table.setMenuId(menuId);
         // 设置主子表信息
         setSubTable(table);
         // 设置主键列信息
@@ -357,6 +360,9 @@ public class GenTableServiceImpl implements IGenTableService
     {
         // 查询表信息
         GenTable table = genTableMapper.selectGenTableByName(tableName);
+        // 获取菜单id序列,用于生成菜单sql语句
+        long menuId = genTableMapper.selectMenuId();
+        table.setMenuId(menuId);
         // 设置主子表信息
         setSubTable(table);
         // 设置主键列信息