From 31f4e5c4a64ed502d242891b84d819f9b337cb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=8C=E5=85=88=E8=88=9C?= <2499071264@qq.com> Date: Sat, 29 Aug 2026 10:25:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=84=9A=E6=9C=AC=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/menu/points_mall_menu_role_init.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/resources/db/menu/points_mall_menu_role_init.sql diff --git a/src/main/resources/db/menu/points_mall_menu_role_init.sql b/src/main/resources/db/menu/points_mall_menu_role_init.sql new file mode 100644 index 00000000..449cc57d --- /dev/null +++ b/src/main/resources/db/menu/points_mall_menu_role_init.sql @@ -0,0 +1,23 @@ +# 创建菜单 +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('2ead84084fdc4484a532684f7320951f', '', '0172', '积分商城', '积分商城', 'menu', null, null, null, true, false, 'points.mall', null, 1008, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784881320809, '17a7f8ad3ee947b4a26175049a9c253d', 1785120306782, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, '/platform/sys/file/download?id=pkvc1qt96kja7qk090r6cqcsue', 'j', true, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('4f78d91041904744aa108ffe6a852dae', '2ead84084fdc4484a532684f7320951f', '01720006', '对账管理', '对账管理', 'menu', '/platform/zhgh/points-mall/reconciliation', null, null, true, false, 'points.mall.reconciliation', null, 1014, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883211218, '17a7f8ad3ee947b4a26175049a9c253d', 1785123524450, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'd', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('62c26ff153704419a1a153849ae575d5', '2ead84084fdc4484a532684f7320951f', '01720001', '订单管理', '订单管理', 'menu', '/platform/zhgh/points-mall/order', null, null, true, false, 'points.mall.order', null, 1009, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883017159, '17a7f8ad3ee947b4a26175049a9c253d', 1785120381341, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, '/platform/sys/file/download?id=12kg7723gijoeofba5lsv5c1qd', 'd', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('72603cdd080f437187a85a3f36366045', '2ead84084fdc4484a532684f7320951f', '01720004', '积分发放', '积分发放', 'menu', '/platform/zhgh/points-mall/pointsgrant', null, null, true, false, 'points.mall.pointsgrant', null, 1012, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883172355, '17a7f8ad3ee947b4a26175049a9c253d', 1785122128842, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'j', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('78516f56d9544bae93940fabfd242b53', '2ead84084fdc4484a532684f7320951f', '01720008', '对账记录', '对账记录', 'menu', '/platform/zhgh/points-mall/reconciliationRecord', null, null, true, false, 'points.mall.reconciliation.record', null, 1016, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883249735, '17a7f8ad3ee947b4a26175049a9c253d', 1785123686539, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'd', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('89a8524cc47d475e8386e72e2f568f01', '2ead84084fdc4484a532684f7320951f', '01720005', '消息推送', '消息推送', 'menu', '/platform/zhgh/points-mall/message', null, null, true, false, 'points.mall.message', null, 1013, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883195156, '17a7f8ad3ee947b4a26175049a9c253d', 1785122179732, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'x', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('be82881dc8804e19a1173f68d46a43a9', '2ead84084fdc4484a532684f7320951f', '01720002', '供应商管理', '供应商管理', 'menu', '/platform/zhgh/points-mall/supplier', null, null, true, false, 'points.mall.supplier', null, 1010, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883111359, '17a7f8ad3ee947b4a26175049a9c253d', 1785120333749, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'g', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('d7d6aac5cfa348cb911d5671e02dd41e', '2ead84084fdc4484a532684f7320951f', '01720007', '发票管理', '发票管理', 'menu', '/platform/zhgh/points-mall/invoice', null, null, true, false, 'points.mall.invoice', null, 1015, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883227468, '17a7f8ad3ee947b4a26175049a9c253d', 1785123556853, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'f', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('de7401b0208d475d87eba57b945dfd1a', '2ead84084fdc4484a532684f7320951f', '01720003', '用户积分管理', '用户积分管理', 'menu', '/platform/zhgh/points-mall/points', null, null, true, false, 'points.mall.points', null, 1011, false, '17a7f8ad3ee947b4a26175049a9c253d', 1784883137031, '17a7f8ad3ee947b4a26175049a9c253d', 1785120406317, false, null, 'PC', '57ef049fc54f409a9ebd3cf74e3e3061', false, null, 'y', false, false); +INSERT INTO sys_menu (id, parentId, path, name, aliasName, type, href, target, icon, showit, disabled, permission, note, location, hasChildren, createdBy, createdAt, updatedBy, updatedAt, delFlag, processKey, platform, moduleId, isQuickEntry, picIcon, initialPinyinName, isRecommendApp, isRecommendService) VALUES ('f82a48e4fe29446eb61d4b85c0c0c1a0', '', '0173', '积分商城', '积分商城', 'menu', '/platform/h5/points-mall', null, null, true, false, 'h5.points.mall', null, 1017, false, '17a7f8ad3ee947b4a26175049a9c253d', 1785131673848, '17a7f8ad3ee947b4a26175049a9c253d', 1785131784602, false, null, 'H5', 'd550e79d5d304d4b8fa6e28a525004b9', false, '/platform/sys/file/download?id=5djm7nu1r4iecpr5khthpcbel0', 'j', false, false); + +# 给菜单赋权限 +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', 'f82a48e4fe29446eb61d4b85c0c0c1a0'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('6d603b652abee584ba6274dc1fcee3bb', 'f82a48e4fe29446eb61d4b85c0c0c1a0'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', '2ead84084fdc4484a532684f7320951f'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', '62c26ff153704419a1a153849ae575d5'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', 'be82881dc8804e19a1173f68d46a43a9'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', 'de7401b0208d475d87eba57b945dfd1a'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', '72603cdd080f437187a85a3f36366045'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', '89a8524cc47d475e8386e72e2f568f01'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', '4f78d91041904744aa108ffe6a852dae'); +INSERT INTO zhgh_cug_v4.sys_role_menu (roleId, menuId) VALUES ('7f4a820d5a394bb8a0a92d6699afe7c8', 'd7d6aac5cfa348cb911d5671e02dd41e');