no message
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
UPDATE `la_system_menu` child
|
||||
JOIN `la_system_menu` parent
|
||||
ON parent.`type` = 'M'
|
||||
AND parent.`paths` = 'match'
|
||||
SET child.`pid` = parent.`id`,
|
||||
child.`paths` = 'match_live',
|
||||
child.`component` = 'match/live/index',
|
||||
child.`selected` = '/match/lists',
|
||||
child.`is_show` = 0,
|
||||
child.`update_time` = UNIX_TIMESTAMP()
|
||||
WHERE child.`perms` = 'match.matchLive/index'
|
||||
AND child.`pid` <> parent.`id`;
|
||||
|
||||
INSERT INTO `la_system_menu` (`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
SELECT parent.`id`, 'C', '直播线路管理', '', 0, 'match.matchLive/index', 'match_live', 'match/live/index', '/match/lists', '', 0, 0, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
||||
FROM `la_system_menu` parent
|
||||
WHERE parent.`perms` = 'match.match/lists'
|
||||
WHERE parent.`type` = 'M'
|
||||
AND parent.`paths` = 'match'
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM `la_system_menu`
|
||||
WHERE `perms` = 'match.matchLive/index'
|
||||
|
||||
Reference in New Issue
Block a user