fix: 用户角色分配用户排除系统管理员1

This commit is contained in:
TsMask
2024-07-05 11:17:17 +08:00
parent 6ce1b1e54a
commit ad0a40cb3d

View File

@@ -254,7 +254,7 @@ func (r *SysUserImpl) SelectAllocatedPage(query map[string]any, dataScopeSQL str
}
// 构建查询条件语句
whereSql := " where u.del_flag = '0' "
whereSql := " where u.del_flag = '0' and u.user_id != '1' "
if len(conditions) > 0 {
whereSql += " and " + strings.Join(conditions, " and ")
}