fix 临时调整查询安全白名单
This commit is contained in:
@@ -99,7 +99,13 @@ public class GainfoService : IGainfoService
|
||||
_ => throw new ArgumentOutOfRangeException(request.SearchType?.ToString())
|
||||
};
|
||||
|
||||
where = where.And(gainfo => gainfo.Type == userType);
|
||||
var userTypes = new List<GainfoUserTypeEnumType> { userType };
|
||||
if (userType == GainfoUserTypeEnumType.Normal)
|
||||
{
|
||||
userTypes.Add(GainfoUserTypeEnumType.SecurityWhite);
|
||||
}
|
||||
|
||||
where = where.And(gainfo => userTypes.Contains(gainfo.Type));
|
||||
}
|
||||
|
||||
ISugarQueryable<GainfoPageResponse> queryable = request.IsSearchAll
|
||||
|
||||
Reference in New Issue
Block a user