修改字段
parent
286867172b
commit
b79e5c1e09
|
@ -49,7 +49,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
|
||||
//该医生已应用的任务数
|
||||
public int? SelfTaskCount { get; set; }
|
||||
public int? SelfApplyedTaskCount { get; set; }
|
||||
|
||||
//已分配但是未读片签名的数量
|
||||
public int? SelfUndoTaskCount { get; set; }
|
||||
|
|
|
@ -119,6 +119,10 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
if (trialConfig.IsFollowVisitAutoAssign)
|
||||
{
|
||||
var allocateSubjectArmList = _visitTaskRepository.Where(t => t.SubjectId == subjectVisit.SubjectId && t.TrialId == subjectVisit.TrialId && t.DoctorUserId != null).Select(t => new { t.DoctorUserId, t.ArmEnum }).Distinct().ToList();
|
||||
|
||||
|
||||
|
||||
var defaultState = trialConfig.FollowVisitAutoAssignDefaultState == TaskAllocateDefaultState.InitAllocated ? TaskState.InitAllocated : TaskState.Allocated;
|
||||
|
||||
|
||||
|
@ -128,7 +132,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
#region 验证历史任务
|
||||
|
||||
var allocateSubjectArmList = _visitTaskRepository.Where(t => t.SubjectId == subjectVisit.SubjectId && t.TrialId == subjectVisit.TrialId && t.DoctorUserId != null).Select(t => new { t.DoctorUserId, t.ArmEnum }).Distinct().ToList();
|
||||
|
||||
|
||||
//不是初次分配 直接分配给Subject 之前的医生
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
|
||||
.ForMember(o => o.SelfUndoTaskCount, t => t.MapFrom(u => u.Trial.VisitTaskList.Count(t => t.DoctorUserId == u.DoctorUserId && t.ReadingTaskState != ReadingTaskState.HaveSigned)))
|
||||
.ForMember(o => o.SelfTaskCount, t => t.MapFrom(u => u.Trial.VisitTaskList.Count(t => t.DoctorUserId == u.DoctorUserId)))
|
||||
.ForMember(o => o.SelfApplyedTaskCount, t => t.MapFrom(u => u.Trial.VisitTaskList.Count(t => t.DoctorUserId == u.DoctorUserId)))
|
||||
.ForMember(o => o.TotalSubjectCount, t => t.MapFrom(u => u.Trial.SubjectList.Count()))
|
||||
.ForMember(o => o.ApplyedTotalSubjectCount, t => t.MapFrom(u => u.Trial.SubjectList.Count(c => c.SubjectVisitTaskList.Any(d => d.DoctorUserId !=null))))
|
||||
.ForMember(o => o.WaitApplyTotalSubjectCount, t => t.MapFrom(u =>
|
||||
|
|
Loading…
Reference in New Issue