INSERT INTO permission (id, permission_code, permission_name, module)
VALUES
    (1027, 'file.download', '下载文件', 'file'),
    (1028, 'audit.export.opinions', '导出审核意见', 'audit'),
    (1029, 'finance.ledger.export', '导出财务台账', 'finance')
ON DUPLICATE KEY UPDATE permission_name = VALUES(permission_name), module = VALUES(module);

INSERT INTO role_permission (id, tenant_id, role_id, permission_id)
VALUES
    (27, 1, 101, 1027),
    (28, 1, 101, 1028),
    (29, 1, 101, 1029)
ON DUPLICATE KEY UPDATE permission_id = VALUES(permission_id);
