diff --git a/sql/accounting20230921JilingLee.sql b/sql/accounting20230921JilingLee.sql index f23c1174..1fd81dc4 100644 --- a/sql/accounting20230921JilingLee.sql +++ b/sql/accounting20230921JilingLee.sql @@ -79,8 +79,8 @@ CREATE TABLE `accounting_invoices` ( SET FOREIGN_KEY_CHECKS = 1; -- 插入发票菜单 -SELECT * FROM `system_menu` WHERE `name`='会计档案'; -SET @menuId = LAST_INSERT_ID(); +SELECT `id` INTO @menuId FROM `system_menu` WHERE `name`='会计档案'; + INSERT INTO `lyr-one`.`system_menu`(`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('发票管理', '', 2, 0, @menuId, 'invoices', '', 'accounting/invoices/index', 'Invoices', 0, b'1', b'1', b'1', '', '2023-09-20 14:03:48', '', '2023-09-20 14:03:48', b'0'); SET @menuId2 = LAST_INSERT_ID(); INSERT INTO `lyr-one`.`system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '发票查询', 'accounting:invoices:query', 3, 1, @menuId2, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2023-09-20 14:03:48', '', '2023-09-20 14:03:48', b'0'); diff --git a/sql/archives20230914JilingLee.sql b/sql/archives20230914JilingLee.sql index c6bad429..9931ed3f 100644 --- a/sql/archives20230914JilingLee.sql +++ b/sql/archives20230914JilingLee.sql @@ -60,8 +60,8 @@ CREATE TABLE `archives_turn_over` ( SET FOREIGN_KEY_CHECKS = 1; -- 插入档案移交菜单 -SELECT * FROM system_menu WHERE name='档案管理'; -SET @menuId = LAST_INSERT_ID(); +SELECT `id` INTO @menuId FROM system_menu WHERE name='档案管理'; + INSERT INTO `lyr-one`.`system_menu`(`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('移交管理', '', 2, 0, @menuId, 'turn-over', '', 'archives/turnOver/index', 'TurnOver', 0, b'1', b'1', b'1', '', '2023-09-13 14:05:07', '', '2023-09-13 14:10:33', b'0'); SET @menuId2 = LAST_INSERT_ID(); INSERT INTO `lyr-one`.`system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '移交管理查询', 'archives:turn-over:query', 3, 1, @menuId2, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2023-09-13 14:05:07', '', '2023-09-13 14:05:07', b'0'); diff --git a/sql/archives20230915JilingLee.sql b/sql/archives20230915JilingLee.sql index 5ce4aaef..15ee54b7 100644 --- a/sql/archives20230915JilingLee.sql +++ b/sql/archives20230915JilingLee.sql @@ -44,8 +44,8 @@ CREATE TABLE `archives_package` ( SET FOREIGN_KEY_CHECKS = 1; -- 插入装册管理菜单 -SELECT * FROM system_menu WHERE name='档案管理'; -SET @menuId = LAST_INSERT_ID(); +SELECT `id` INTO @menuId FROM system_menu WHERE name='档案管理'; + INSERT INTO `lyr-one`.`system_menu`(`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('装册管理', '', 2, 0, @menuId, 'packages', '', 'archives/packages/index', 'Packages', 0, b'1', b'1', b'1', '', '2023-09-15 13:20:18', '', '2023-09-15 13:20:18', b'0'); SET @menuId2 = LAST_INSERT_ID(); INSERT INTO `lyr-one`.`system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '装册查询', 'archives:packages:query', 3, 1, @menuId2, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2023-09-15 13:20:18', '', '2023-09-15 13:20:18', b'0'); diff --git a/sql/setting20230918JilingLee.sql b/sql/setting20230918JilingLee.sql index ccea8467..697c1f24 100644 --- a/sql/setting20230918JilingLee.sql +++ b/sql/setting20230918JilingLee.sql @@ -29,8 +29,8 @@ CREATE TABLE `setting_password` ( SET FOREIGN_KEY_CHECKS = 1; -- 插入数据密码菜单 -SELECT * FROM system_menu WHERE name='档案设置'; -SET @menuId = LAST_INSERT_ID(); +SELECT `id` INTO @menuId FROM system_menu WHERE name='档案设置'; + INSERT INTO `lyr-one`.`system_menu`(`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ('数据密码管理', '', 2, 0, @menuId, 'passwords', '', 'setting/passwords/index', 'Passwords', 0, b'1', b'1', b'1', '', '2023-09-18 13:52:08', '', '2023-09-18 13:52:08', b'0'); SET @menuId2 = LAST_INSERT_ID(); INSERT INTO `lyr-one`.`system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (NULL, '数据密码查询', 'setting:passwords:query', 3, 1, @menuId2, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2023-09-18 13:52:08', '', '2023-09-18 13:52:08', b'0');