修改
continuous-integration/drone/push Build is passing Details

Uat_Study^2
he 2024-05-23 16:19:20 +08:00
parent 0642b9e4fb
commit f802897b14
1 changed files with 4 additions and 1 deletions

View File

@ -1272,6 +1272,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var entity = item.Entity as QCChallenge; var entity = item.Entity as QCChallenge;
var challengeState= await _dbContext.SubjectVisit.Where(x => x.Id == entity.SubjectVisitId).Select(x => x.ChallengeState).FirstOrDefaultAsync();
await InsertInspection<QCChallenge>(entity, type, x => new InspectionConvertDTO() await InsertInspection<QCChallenge>(entity, type, x => new InspectionConvertDTO()
{ {
SubjectVisitId = x.SubjectVisitId, SubjectVisitId = x.SubjectVisitId,
@ -1281,6 +1283,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{ {
IsOverTime = entity.IsClosed ? entity.ClosedTime > entity.DeadlineTime : DateTime.Now > entity.DeadlineTime, IsOverTime = entity.IsClosed ? entity.ClosedTime > entity.DeadlineTime : DateTime.Now > entity.DeadlineTime,
ChallengeState= challengeState,
}); });
} }