修改稽查

Uat_IRC_Net8
he 2025-07-30 14:43:44 +08:00
parent fa9c7c8cf8
commit 034a0e8bbb
1 changed files with 14 additions and 1 deletions

View File

@ -1325,6 +1325,17 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var entity = item.Entity as ReadingMedicalReviewDialog;
bool isHaveQuestion = false;
if (entitys.Any(x => x.Entity.GetType() == typeof(TaskMedicalReview)))
{
isHaveQuestion = entitys.Where(x => x.Entity.GetType() == typeof(TaskMedicalReview)).Select(x => x.Entity as TaskMedicalReview).Select(x => x.IsHaveQuestion).FirstOrDefault();
}
else
{
isHaveQuestion = await _dbContext.TaskMedicalReview.Where(x => x.Id == entity.TaskMedicalReviewId).Select(t => t.IsHaveQuestion).FirstOrDefaultAsync();
}
var extraIdentification = string.Empty;
//失效的时候 不区分标识
@ -1341,11 +1352,13 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{
IsDistinctionInterface = false,
VisitTaskId = entity.VisitTaskId,
ObjectRelationParentId = entity.TaskMedicalReviewId,
ExtraIndentification = extraIdentification
},new {
IsHaveQuestion= isHaveQuestion,
});
}