Files
dafuweng-saiadmin6.x/server/db/dice_reward_config_tier_recommend_menu.sql

24 lines
990 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 奖励配置档位结算推荐配置T1-T5 推荐金额、按规则生成)按钮权限
-- 挂载在「奖励配置」菜单type=2slug 与 DiceRewardConfigController Permission 一致
SET @now = NOW();
SET @reward_menu_id = (
SELECT `id` FROM `sa_system_menu`
WHERE `type` = 2
AND (
`path` = 'reward_config'
OR `component` LIKE '%reward_config%'
)
ORDER BY `id` ASC
LIMIT 1
);
INSERT INTO `sa_system_menu`
(`parent_id`,`name`,`code`,`slug`,`type`,`path`,`component`,`method`,`sort`,`is_iframe`,`is_keep_alive`,`is_hidden`,`is_fixed_tab`,`is_full_page`,`generate_id`,`generate_key`,`status`,`create_time`,`update_time`)
SELECT @reward_menu_id, '档位结算推荐配置', '', 'dice:reward_config:index:tierRecommend', 3, '', '', '', 95, 2, 2, 2, 2, 2, 0, NULL, 1, @now, @now
WHERE @reward_menu_id IS NOT NULL
AND NOT EXISTS (
SELECT 1 FROM `sa_system_menu` WHERE `slug` = 'dice:reward_config:index:tierRecommend' AND `type` = 3
);