INSERT INTO platform_permission (id, permission_code, permission_name, module)
VALUES
    (4, 'platform.menu.manage', '平台菜单管理', 'platform'),
    (5, 'platform.role.read', '平台角色查看', 'platform')
ON DUPLICATE KEY UPDATE permission_name = VALUES(permission_name), module = VALUES(module);

INSERT INTO platform_role_permission (id, role_id, permission_id)
VALUES
    (4, 1, 4),
    (5, 1, 5)
ON DUPLICATE KEY UPDATE permission_id = VALUES(permission_id);
