Compare commits

..

No commits in common. "da27b65e56f0f145a976b72dddda1f1df6a8cef3" and "c2c8f65aaac0429e3286e6877bacb0023873d10e" have entirely different histories.

4 changed files with 24 additions and 42 deletions

View File

@ -190,7 +190,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
.WhereIf(!inQuery.TaskName.IsNullOrEmpty(), x => x.TaskName.Contains(inQuery.TaskName) || x.BlindName.Contains(inQuery.TaskName)) .WhereIf(!inQuery.TaskName.IsNullOrEmpty(), x => x.TaskName.Contains(inQuery.TaskName) || x.BlindName.Contains(inQuery.TaskName))
.WhereIf(!inQuery.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(inQuery.SubjectInfo)) .WhereIf(!inQuery.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(inQuery.SubjectInfo))
.WhereIf(!inQuery.RoleName.IsNullOrEmpty(), x => x.RoleName == inQuery.RoleName) .WhereIf(!inQuery.RoleName.IsNullOrEmpty(), x => x.RoleName.Contains(inQuery.RoleName))
//.WhereIf(dto.VisitPlanInfo != null&& dto.VisitPlanInfo!=(decimal) 1.11, x => x.VisitNum == dto.VisitPlanInfo) //.WhereIf(dto.VisitPlanInfo != null&& dto.VisitPlanInfo!=(decimal) 1.11, x => x.VisitNum == dto.VisitPlanInfo)
//.WhereIf(dto.VisitPlanInfo != (decimal)1.11,x=>x.InPlan!=null&& x.InPlan==false) //.WhereIf(dto.VisitPlanInfo != (decimal)1.11,x=>x.InPlan!=null&& x.InPlan==false)
.WhereIf(inQuery.StartTime != null, x => x.CreateTime >= inQuery.StartTime) .WhereIf(inQuery.StartTime != null, x => x.CreateTime >= inQuery.StartTime)

View File

@ -94,15 +94,6 @@ namespace IRaCIS.Application.Contracts
public Guid UserId { get; set; } public Guid UserId { get; set; }
} }
public class TrialIdentityUserBasicInfo
{
public Guid IdentityUserId { get; set; }
public string UserName { get; set; }
public string FullName { get; set; }
}
public class TrialMaintenanceDTO : UserTrialCommand public class TrialMaintenanceDTO : UserTrialCommand
{ {

View File

@ -21,10 +21,10 @@ namespace IRaCIS.Core.Application.Service
{ {
[HttpGet] [HttpGet]
public async Task<List<TrialIdentityUserBasicInfo>> GetTrialUserList(Guid trialId) public async Task<List<TrialUserBasicInfo>> GetTrialUserList(Guid trialId)
{ {
return await _trialIdentityUserRepository.Where(t => t.TrialId == trialId, ignoreQueryFilters: true) return await _trialUseRoleRepository.Where(t => t.TrialId == trialId, ignoreQueryFilters: true)
.Select(t => new TrialIdentityUserBasicInfo() { FullName = t.IdentityUser.FullName, IdentityUserId = t.IdentityUserId, UserName = t.IdentityUser.UserName }) .Select(t => new TrialUserBasicInfo() { FullName = t.UserRole.FullName, UserId = t.UserId, UserTypeId = t.UserRole.UserTypeId, UserName = t.UserRole.IdentityUser.UserName })
.ToListAsync(); .ToListAsync();
} }

View File

@ -22,12 +22,6 @@ namespace IRaCIS.Core.Application.Triggers.AfterSaveTrigger
{ {
if (userlog.TargetIdentityUserId != null) if (userlog.TargetIdentityUserId != null)
{
//判断是否需要记录详情
if (userlog.OptType == UserOptType.AddUser || userlog.OptType == UserOptType.UpdateUser || userlog.OptType == UserOptType.UpdateUserRole
|| userlog.OptType == UserOptType.AccountEnable || userlog.OptType == UserOptType.AccountLocked)
{ {
var obj = await _identityUserRepository.Where(t => t.Id == userlog.TargetIdentityUserId).Select(t => new UserLogJsonObj() var obj = await _identityUserRepository.Where(t => t.Id == userlog.TargetIdentityUserId).Select(t => new UserLogJsonObj()
{ {
@ -54,9 +48,6 @@ namespace IRaCIS.Core.Application.Triggers.AfterSaveTrigger
userlog.JsonObj = obj.ToJsonStr(); userlog.JsonObj = obj.ToJsonStr();
}
} }