修改用户日志

Uat_IRC_Net8
hang 2025-01-09 15:23:28 +08:00
parent d3396d9683
commit 862da87a0c
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? UserTypeId { get; set; }
public Guid? UserId { get; set; }
public Guid? IdentityUserId { get; set; }
}

View File

@ -916,6 +916,7 @@ namespace IRaCIS.Core.Application.Service
var userLogQueryable =
_userLogRepository.AsQueryable().IgnoreQueryFilters()
.WhereIf(inQuery.IdentityUserId != null, t => t.ActionIdentityUserId == inQuery.IdentityUserId)
.WhereIf(inQuery.TrialId != null, t => t.ActionIdentityUser.UserTrialList.Any(c => c.TrialId == inQuery.TrialId))
.WhereIf(trialCreateTime != null, t => t.CreateTime >= trialCreateTime)
.WhereIf(inQuery.OptType != null, t => t.OptType == inQuery.OptType)