From ec3deb209efbbd67808a27ca588d4681ae8c3d5c Mon Sep 17 00:00:00 2001 From: Damonny <826010988@qq.com> Date: Tue, 31 Dec 2024 00:10:36 +0800 Subject: [PATCH] update: sql init --- .../V5.0.10__order_prod_insert_api_menu.sql | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 yudao-server/src/main/resources/db/migration/V5.0.10__order_prod_insert_api_menu.sql diff --git a/yudao-server/src/main/resources/db/migration/V5.0.10__order_prod_insert_api_menu.sql b/yudao-server/src/main/resources/db/migration/V5.0.10__order_prod_insert_api_menu.sql new file mode 100644 index 0000000000..11116e421e --- /dev/null +++ b/yudao-server/src/main/resources/db/migration/V5.0.10__order_prod_insert_api_menu.sql @@ -0,0 +1,46 @@ +-- 菜单 SQL +INSERT INTO system_menu( + name, permission, type, sort, parent_id, + path, icon, component, status, component_name +) +VALUES ( + '生产管理', '', 1, 3, 0, + '/orders', '', '', 0, '' + ); +-- 按钮父菜单ID +-- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码 +SELECT @parentId := LAST_INSERT_ID(); + +INSERT INTO system_menu( + name, permission, type, sort, parent_id, + path, icon, component, status, component_name +) +VALUES ( + '订单审核', '', 2, 0, @parentId, + 'orders', '', 'haoka/orderAudit/index', 0, 'orderAudit' +); +-- 按钮 SQL +INSERT INTO system_menu( + name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '订单查询', 'haoka:orderAudit:query', 3, 1, @parentId, + '', '', '', 0 +); +INSERT INTO system_menu( + name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '订单更新', 'haoka:orderAudit:update', 3, 2, @parentId, + '', '', '', 0 +); +INSERT INTO system_menu( + name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '订单导出', 'haoka:orderAudit:export', 3, 3, @parentId, + '', '', '', 0 +);