修复提示bug
parent
963f093ce4
commit
732271121d
|
@ -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 })
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
//添加的时候,更新审计字段也赋值
|
//添加的时候,更新审计字段也赋值
|
||||||
|
|
|
@ -7,7 +7,7 @@ using IRaCIS.Core.Domain.Share;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Triggers
|
namespace IRaCIS.Core.Application.Triggers
|
||||||
{
|
{
|
||||||
public class AuditUpdateTrigger: IBeforeSaveTrigger<IAuditUpdate>
|
public class AuditUpdateTrigger : IBeforeSaveTrigger<IAuditUpdate>
|
||||||
{
|
{
|
||||||
private readonly IUserInfo _userInfo;
|
private readonly IUserInfo _userInfo;
|
||||||
|
|
||||||
|
@ -18,10 +18,12 @@ namespace IRaCIS.Core.Application.Triggers
|
||||||
|
|
||||||
public Task BeforeSave(ITriggerContext<IAuditUpdate> context, CancellationToken cancellationToken)
|
public Task BeforeSave(ITriggerContext<IAuditUpdate> context, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
if (context.ChangeType == ChangeType.Modified|| context.ChangeType == ChangeType.Added)
|
if (context.ChangeType == ChangeType.Modified || context.ChangeType == ChangeType.Added)
|
||||||
{
|
{
|
||||||
|
context.Entity.UpdateTime = DateTime.UtcNow.AddHours(8);
|
||||||
|
|
||||||
context.Entity.UpdateUserId = _userInfo.Id;
|
context.Entity.UpdateUserId = _userInfo.Id;
|
||||||
context.Entity.UpdateTime=DateTime.UtcNow.AddHours(8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
Loading…
Reference in New Issue