INSERT INTO permission (id, permission_code, permission_name, module)
VALUES
    (1201, 'user.import', '导入用户', 'user')
ON DUPLICATE KEY UPDATE permission_name = VALUES(permission_name), module = VALUES(module);

INSERT INTO role_permission (id, tenant_id, role_id, permission_id)
VALUES
    (1202, 1, 101, 1201)
ON DUPLICATE KEY UPDATE permission_id = VALUES(permission_id);
