Browse Source

租户增加默认菜单

xuezizhuo 1 year ago
parent
commit
80fdf121d7

+ 50 - 0
zkqy-system/src/main/java/com/zkqy/system/service/impl/SysTenantServiceImpl.java

@@ -1661,6 +1661,56 @@ public class SysTenantServiceImpl implements ISysTenantService {
                 "        \"children\": [],\n" +
                 "        \"tenantName\": null,\n" +
                 "        \"tenantId\": null\n" +
+                "    },\n" +
+                "    {\n" +
+                "        \"createBy\": null,\n" +
+                "        \"createTime\": \"2023-07-07 14:04:16\",\n" +
+                "        \"updateBy\": null,\n" +
+                "        \"updateTime\": null,\n" +
+                "        \"remark\": null,\n" +
+                "        \"menuId\": 9574,\n" +
+                "        \"menuName\": \"移动端引擎\",\n" +
+                "        \"parentName\": null,\n" +
+                "        \"parentId\": 0,\n" +
+                "        \"orderNum\": 6,\n" +
+                "        \"path\": \"ydyq\",\n" +
+                "        \"component\": null,\n" +
+                "        \"query\": null,\n" +
+                "        \"isFrame\": \"1\",\n" +
+                "        \"isCache\": \"0\",\n" +
+                "        \"menuType\": \"M\",\n" +
+                "        \"visible\": \"0\",\n" +
+                "        \"status\": \"0\",\n" +
+                "        \"perms\": \"\",\n" +
+                "        \"icon\": \"bpmn-icon-call-activity\",\n" +
+                "        \"children\": [],\n" +
+                "        \"tenantName\": null,\n" +
+                "        \"tenantId\": null\n" +
+                "    },\n" +
+                "    {\n" +
+                "        \"createBy\": null,\n" +
+                "        \"createTime\": \"2023-10-11 09:28:10\",\n" +
+                "        \"updateBy\": null,\n" +
+                "        \"updateTime\": null,\n" +
+                "        \"remark\": null,\n" +
+                "        \"menuId\": 9573,\n" +
+                "        \"menuName\": \"页面设计\",\n" +
+                "        \"parentName\": null,\n" +
+                "        \"parentId\": 9574,\n" +
+                "        \"orderNum\": 1,\n" +
+                "        \"path\": \"h5Editor\",\n" +
+                "        \"component\": \"asEditor/layout/home/index\",\n" +
+                "        \"query\": null,\n" +
+                "        \"isFrame\": \"1\",\n" +
+                "        \"isCache\": \"0\",\n" +
+                "        \"menuType\": \"C\",\n" +
+                "        \"visible\": \"0\",\n" +
+                "        \"status\": \"0\",\n" +
+                "        \"perms\": \"\",\n" +
+                "        \"icon\": \"bpmn-icon-intermediate-event-catch-cancel\",\n" +
+                "        \"children\": [],\n" +
+                "        \"tenantName\": null,\n" +
+                "        \"tenantId\": null\n" +
                 "    }\n" +
                 "]";
         List<SysMenu> list = new ArrayList<>();

+ 4 - 4
zkqy-system/src/main/resources/mapper/system/SysMenuMapper.xml

@@ -106,8 +106,8 @@
         from sys_menu m
                  left join sys_tenant_menu tm on tm.menu_id = m.menu_id
         where tm.tenant_id = #{tenantId}
-          and m.menu_name not in ('数据引擎', '流程引擎', '表单引擎')
-          and parent_id not in (select menu_id from sys_menu where menu_name in ("数据引擎", "流程引擎", "表单引擎"))
+          and m.menu_name not in ('数据引擎', '流程引擎', '表单引擎','移动端引擎')
+          and parent_id not in (select menu_id from sys_menu where menu_name in ("数据引擎", "流程引擎", "表单引擎","移到端引擎"))
         order by parent_id, order_num
 
     </select>
@@ -157,7 +157,7 @@
         where m.menu_type in ('M', 'C')
           and m.status = 0
           and tm.tenant_id = #{tenantId}
-          and m.menu_name in ('数据引擎', '流程引擎', '表单引擎')
+          and m.menu_name in ('数据引擎', '流程引擎', '表单引擎','移动端引擎')
 
 
         UNION
@@ -186,7 +186,7 @@
           and tm.tenant_id = #{tenantId}
           and m.parent_id in (select menu_id
                               from sys_menu
-                              where menu_name in ("数据引擎", "流程引擎", "表单引擎"))
+                              where menu_name in ("数据引擎", "流程引擎", "表单引擎","移动端引擎"))
 
     </select>
 

+ 50 - 0
zkqy-system/src/main/resources/sql/initialize_sys_tenant_menu.json

@@ -1473,5 +1473,55 @@
         "children": [],
         "tenantName": null,
         "tenantId": null
+    },
+    {
+        "createBy": null,
+        "createTime": "2023-07-07 14:04:16",
+        "updateBy": null,
+        "updateTime": null,
+        "remark": null,
+        "menuId": 9574,
+        "menuName": "移动端引擎",
+        "parentName": null,
+        "parentId": 0,
+        "orderNum": 6,
+        "path": "ydyq",
+        "component": null,
+        "query": null,
+        "isFrame": "1",
+        "isCache": "0",
+        "menuType": "M",
+        "visible": "0",
+        "status": "0",
+        "perms": "",
+        "icon": "bpmn-icon-call-activity",
+        "children": [],
+        "tenantName": null,
+        "tenantId": null
+    },
+    {
+        "createBy": null,
+        "createTime": "2023-10-11 09:28:10",
+        "updateBy": null,
+        "updateTime": null,
+        "remark": null,
+        "menuId": 9573,
+        "menuName": "页面设计",
+        "parentName": null,
+        "parentId": 9574,
+        "orderNum": 1,
+        "path": "h5Editor",
+        "component": "asEditor/layout/home/index",
+        "query": null,
+        "isFrame": "1",
+        "isCache": "0",
+        "menuType": "C",
+        "visible": "0",
+        "status": "0",
+        "perms": "",
+        "icon": "bpmn-icon-intermediate-event-catch-cancel",
+        "children": [],
+        "tenantName": null,
+        "tenantId": null
     }
 ]