Uat_Study
parent
d339f5f476
commit
02883db402
|
@ -102,6 +102,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == taskId).IgnoreAutoIncludes().AsNoTracking().FirstNotNullAsync();
|
var taskInfo = await _visitTaskRepository.Where(x => x.Id == taskId).IgnoreAutoIncludes().AsNoTracking().FirstNotNullAsync();
|
||||||
taskInfo.ReadingTaskState = ReadingTaskState.WaitReading;
|
taskInfo.ReadingTaskState = ReadingTaskState.WaitReading;
|
||||||
taskInfo.IsConvertedTask = true;
|
taskInfo.IsConvertedTask = true;
|
||||||
|
taskInfo.BeforeConvertedTaskId = taskId;
|
||||||
taskInfo.Id = NewId.NextGuid();
|
taskInfo.Id = NewId.NextGuid();
|
||||||
|
|
||||||
await _visitTaskRepository.BatchUpdateNoTrackingAsync(x =>
|
await _visitTaskRepository.BatchUpdateNoTrackingAsync(x =>
|
||||||
|
|
|
@ -724,8 +724,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
x.IsAnalysisCreate== taskinfo.IsAnalysisCreate&&
|
x.IsAnalysisCreate== taskinfo.IsAnalysisCreate&&
|
||||||
x.DoctorUserId == taskinfo.DoctorUserId &&
|
x.DoctorUserId == taskinfo.DoctorUserId &&
|
||||||
x.IsSelfAnalysis== taskinfo.IsSelfAnalysis &&
|
x.IsSelfAnalysis== taskinfo.IsSelfAnalysis &&
|
||||||
x.SubjectId == taskinfo.SubjectId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.ArmEnum == taskinfo.ArmEnum)
|
x.SubjectId == taskinfo.SubjectId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.ArmEnum == taskinfo.ArmEnum
|
||||||
&& ((x.VisitTaskNum < taskinfo.VisitTaskNum && x.TaskState == TaskState.Effect)||(x.VisitTaskNum==taskinfo.VisitTaskNum&&x.TaskState==TaskState.Freeze) )
|
&& x.VisitTaskNum < taskinfo.VisitTaskNum && x.TaskState == TaskState.Effect)||(x.Id==taskinfo.BeforeConvertedTaskId)
|
||||||
).OrderByDescending(x => x.VisitTaskNum).Select(x => x.Id).FirstOrDefaultAsync();
|
).OrderByDescending(x => x.VisitTaskNum).Select(x => x.Id).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -294,6 +294,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsConvertedTask { get; set; } = false;
|
public bool IsConvertedTask { get; set; } = false;
|
||||||
|
|
||||||
|
public Guid BeforeConvertedTaskId { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public List<CrterionDictionaryGroup> CrterionDictionaryGroup
|
public List<CrterionDictionaryGroup> CrterionDictionaryGroup
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue