修改查询
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-14 15:01:18 +08:00
parent 329437411d
commit 3bf26dbbef
4 changed files with 5 additions and 1 deletions
@@ -57,6 +57,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? UserTypeId { get; set; }
public Guid? UserId { get; set; }
}
@@ -761,6 +761,7 @@ namespace IRaCIS.Application.Services
_userLogRepository
.WhereIf(inQuery.TrialId != null, t => t.LoginUser.UserTrials.Any(c => c.TrialId == inQuery.TrialId && (c.UserId == t.LoginUserId || c.UserId == t.OptUserId)))
.WhereIf(inQuery.OptType != null, t => t.OptType == inQuery.OptType)
.WhereIf(inQuery.UserId != null, t => t.LoginUserId == inQuery.UserId)
.WhereIf(inQuery.BeginDate != null, t => t.CreateTime >= inQuery.BeginDate)
.WhereIf(inQuery.EndDate != null, t => t.CreateTime <= inQuery.EndDate)
.WhereIf(!string.IsNullOrEmpty(inQuery.LoginUserName), t => t.LoginUser.UserName.Contains(inQuery.LoginUserName!))