普通用户列表筛选
This commit is contained in:
parent
c38ccd8ccb
commit
d2d0db5f87
@ -40,6 +40,9 @@ public class AppUserService : BaseService<AppUserEntity>, ITransient
|
|||||||
{
|
{
|
||||||
var query = _appUserRep.AsQueryable()
|
var query = _appUserRep.AsQueryable()
|
||||||
.Where(u => u.PersonType == PersonType.Athlete)
|
.Where(u => u.PersonType == PersonType.Athlete)
|
||||||
|
// 排除:仅由单位添加、但用户本人尚未通过小程序提交认证的运动员
|
||||||
|
// 保留:自主注册的用户(MerchantCertificationId == null)+ 单位添加但自己已提交认证的用户(AuditStatus != PendingSubmission)
|
||||||
|
.Where(u => u.MerchantCertificationId == null || u.AuditStatus != AuditStatus.PendingSubmission)
|
||||||
.WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name))
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name))
|
||||||
.WhereIF(input.Gender.HasValue, u => u.Gender == input.Gender)
|
.WhereIF(input.Gender.HasValue, u => u.Gender == input.Gender)
|
||||||
.WhereIF(!string.IsNullOrWhiteSpace(input.Mobile), u => u.Mobile.Contains(input.Mobile))
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Mobile), u => u.Mobile.Contains(input.Mobile))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user