修改一版
parent
5180fe2ba5
commit
fe2bc9d5d6
|
@ -82,6 +82,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
medicalReviewInfo.TaskList = await _visitTaskRepository
|
||||
.WhereIf(taskInfo.ArmEnum == Arm.JudgeArm, x => x.ArmEnum == Arm.JudgeArm)
|
||||
.WhereIf(taskInfo.ArmEnum != Arm.JudgeArm, x => x.ArmEnum != Arm.JudgeArm)
|
||||
.Where(x=>x.IsAnalysisCreate== taskInfo.IsAnalysisCreate)
|
||||
.Where(x => x.SubjectId == taskInfo.SubjectId
|
||||
&& x.DoctorUserId == taskInfo.DoctorUserId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.ReReadingApplyState != ReReadingApplyState.Agree
|
||||
).OrderBy(x => x.VisitTaskNum).Select(x => new TaskInfo()
|
||||
|
@ -102,7 +103,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
List<TaskInfo> otherTask = await _visitTaskRepository.Where(x => x.ArmEnum != Arm.JudgeArm && x.SubjectId == taskInfo.SubjectId
|
||||
&& x.DoctorUserId != taskInfo.DoctorUserId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.ReReadingApplyState != ReReadingApplyState.Agree
|
||||
).OrderBy(x => x.VisitTaskNum).Select(x => new TaskInfo()
|
||||
)
|
||||
.Where(x => x.IsAnalysisCreate == taskInfo.IsAnalysisCreate)
|
||||
.OrderBy(x => x.VisitTaskNum).Select(x => new TaskInfo()
|
||||
{
|
||||
TaskId = x.Id,
|
||||
IsCurrentTask = x.Id == taskInfo.Id,
|
||||
|
@ -138,7 +141,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
List<TaskInfo> otherTask = await _visitTaskRepository.Where(x => x.ArmEnum != Arm.JudgeArm && x.SouceReadModuleId == taskInfo.SouceReadModuleId && x.SourceSubjectVisitId == taskInfo.SourceSubjectVisitId
|
||||
&& x.DoctorUserId != taskInfo.DoctorUserId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.ReReadingApplyState != ReReadingApplyState.Agree
|
||||
).OrderBy(x => x.VisitTaskNum).Select(x => new TaskInfo()
|
||||
)
|
||||
.Where(x => x.IsAnalysisCreate == taskInfo.IsAnalysisCreate)
|
||||
.OrderBy(x => x.VisitTaskNum).Select(x => new TaskInfo()
|
||||
{
|
||||
TaskId = x.Id,
|
||||
IsCurrentTask = x.Id == taskInfo.Id,
|
||||
|
@ -362,7 +367,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
x.SaveConclusionTime,
|
||||
x.SaveQuestionTime,
|
||||
x.IsClosedDialog
|
||||
x.IsClosedDialog,
|
||||
x.IsHaveQuestion
|
||||
|
||||
}).FirstNotNullAsync();
|
||||
|
||||
|
@ -372,7 +378,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
}
|
||||
|
||||
if (!taskmedicalReview.IsClosedDialog)
|
||||
if (taskmedicalReview.IsHaveQuestion&&!taskmedicalReview.IsClosedDialog)
|
||||
{
|
||||
throw new BusinessValidationFailedException("对话未关闭");
|
||||
|
||||
|
|
|
@ -115,10 +115,16 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public DateTime? SuggesteFinishedTime { get; set; }
|
||||
|
||||
//是否是重阅产生的,方便过滤数据
|
||||
|
||||
/// <summary>
|
||||
/// 是否是重阅产生的,方便过滤数据
|
||||
/// </summary>
|
||||
public bool IsReReadingCreate { get; set; }
|
||||
|
||||
//是否是一致性分析产生
|
||||
|
||||
/// <summary>
|
||||
/// 是否是一致性分析产生
|
||||
/// </summary>
|
||||
public bool IsAnalysisCreate { get; set; }
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue