修复提示bug

Test.EIImageViewer
hang 2022-04-28 17:09:55 +08:00
parent 963f093ce4
commit 732271121d
4 changed files with 12 additions and 13 deletions

View File

@ -1112,7 +1112,10 @@ namespace IRaCIS.Core.Application.Image.QA
var dbSubjectVisit = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId)).IfNullThrowException(); var dbSubjectVisit = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId)).IfNullThrowException();
VerifyIsCanQC(dbSubjectVisit); if (dbSubjectVisit.PreliminaryAuditUserId != null)
{
throw new BusinessValidationFailedException("当前访视已审核通过,不允许操作");
}
var trialConfig = await _trialRepository var trialConfig = await _trialRepository
.Select(t => new { TrialId = t.Id, t.QCProcessEnum, t.IsImageConsistencyVerification }) .Select(t => new { TrialId = t.Id, t.QCProcessEnum, t.IsImageConsistencyVerification })

View File

@ -23,7 +23,9 @@ namespace IRaCIS.Application.Services
public string Get(testModel testModel) public string Get(testModel testModel)
{ {
var tt= _dicRepository.UpdateFromQueryAsync(Guid.Parse("e2b97a6c-35a6-4aa3-7f27-08da13ab33ff"), t => new Dictionary() { Description = "xxxxx"}, true).Result; var waitModifyEntity= _dicRepository.FirstOrDefaultAsync(t=>t.Id== Guid.Parse("e2b97a6c-35a6-4aa3-7f27-08da13ab33ff")).GetAwaiter().GetResult();
var tt= _dicRepository.UpdateAsync(waitModifyEntity, t => new Dictionary() { Description = "xxxxx"}, true).Result;
//var d = _repository.Where<User>(t => t.FullName.Contains("cc")).Select(t => t.FullName).FirstOrDefault(); //var d = _repository.Where<User>(t => t.FullName.Contains("cc")).Select(t => t.FullName).FirstOrDefault();

View File

@ -387,14 +387,6 @@ namespace IRaCIS.Core.Infra.EFCore
updateEntity1.UpdateUserId = _userInfo.Id; updateEntity1.UpdateUserId = _userInfo.Id;
} }
if (t.Entity is ISoftDelete updateEntity2)
{
if (updateEntity2.IsDeleted == true)
{
updateEntity2.DeletedTime = DateTime.UtcNow.AddHours(8);
}
}
break; break;
//添加的时候,更新审计字段也赋值 //添加的时候,更新审计字段也赋值

View File

@ -20,8 +20,10 @@ namespace IRaCIS.Core.Application.Triggers
{ {
if (context.ChangeType == ChangeType.Modified || context.ChangeType == ChangeType.Added) if (context.ChangeType == ChangeType.Modified || context.ChangeType == ChangeType.Added)
{ {
context.Entity.UpdateUserId = _userInfo.Id;
context.Entity.UpdateTime = DateTime.UtcNow.AddHours(8); context.Entity.UpdateTime = DateTime.UtcNow.AddHours(8);
context.Entity.UpdateUserId = _userInfo.Id;
} }
return Task.CompletedTask; return Task.CompletedTask;