兼容mysql

This commit is contained in:
COOL 2024-06-13 09:55:45 +08:00
parent ef688d340b
commit fa8c95d7aa

View File

@ -27,8 +27,8 @@ import { BaseSysRoleService } from '../../../service/sys/role';
['label != :label', { label: 'admin' }], ['label != :label', { label: 'admin' }],
// 如果不是超管,只能看到自己新建的或者自己有的角色 // 如果不是超管,只能看到自己新建的或者自己有的角色
[ [
'(userId=:userId or id in (:...roleIds))', `(userId=:userId or id in (${roleIds.join(',')}))`,
{ userId, roleIds }, { userId },
username !== 'admin', username !== 'admin',
], ],
]; ];