INSERT INTO permission (id, permission_code, permission_name, module)
VALUES
    (1030, 'meeting.material.read', '查看会议资料模块', 'meeting'),
    (1031, 'meeting.material.save', '保存会议资料模块', 'meeting'),
    (1032, 'meeting.material.submit', '提交会议资料模块', 'meeting'),
    (1033, 'meeting.material.history.read', '查看会议资料历史', 'meeting')
ON DUPLICATE KEY UPDATE permission_name = VALUES(permission_name), module = VALUES(module);

INSERT INTO role_permission (id, tenant_id, role_id, permission_id)
VALUES
    (30, 1, 101, 1030),
    (31, 1, 101, 1031),
    (32, 1, 101, 1032),
    (33, 1, 101, 1033)
ON DUPLICATE KEY UPDATE permission_id = VALUES(permission_id);
