修改入组发送邮件逻辑
This commit is contained in:
@@ -419,6 +419,9 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
int currentMaxCodeInt = cacheMaxCodeInt > dbMaxCode ? cacheMaxCodeInt : dbMaxCode;
|
||||
|
||||
|
||||
|
||||
|
||||
switch (generateTaskCommand.ReadingCategory)
|
||||
{
|
||||
case GenerateTaskCategory.Visit:
|
||||
@@ -1010,8 +1013,6 @@ namespace IRaCIS.Core.Application.Service
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
@@ -1019,8 +1020,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
var reReadingVisitTask = generateTaskCommand.ReReadingTask;
|
||||
|
||||
|
||||
|
||||
var subjectVisitUrgent = _subjectVisitRepository.Where(t => t.Id == reReadingVisitTask.SourceSubjectVisitId).Select(t=>t.IsUrgent).FirstOrDefault();
|
||||
|
||||
var newTask = await _visitTaskRepository.AddAsync(new VisitTask()
|
||||
{
|
||||
@@ -1031,6 +1031,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
TaskName = reReadingVisitTask.TaskName,
|
||||
TaskBlindName = reReadingVisitTask.TaskBlindName,
|
||||
|
||||
IsUrgent = reReadingVisitTask.IsAnalysisCreate?false: subjectVisitUrgent,
|
||||
|
||||
VisitTaskNum = reReadingVisitTask.VisitTaskNum,
|
||||
ReadingCategory = reReadingVisitTask.ReadingCategory,
|
||||
SourceSubjectVisitId = reReadingVisitTask.SourceSubjectVisitId,
|
||||
@@ -1055,7 +1057,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
// AllocateTime = DateTime.Now,
|
||||
//DoctorUserId = reReadingVisitTask.DoctorUserId,
|
||||
|
||||
});
|
||||
});;
|
||||
|
||||
generateTaskCommand.Action(newTask);
|
||||
|
||||
@@ -1253,7 +1255,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
TrialId = trialId,
|
||||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
IsUrgent = originalTaskInfo.IsUrgent,
|
||||
VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Global],
|
||||
TaskName = item.ReadingName,
|
||||
ArmEnum = originalTaskInfo.ArmEnum,//特殊
|
||||
@@ -1299,7 +1301,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
TrialId = trialId,
|
||||
SubjectId = item.SubjectId,
|
||||
IsUrgent = item.IsUrgent,
|
||||
IsUrgent = originalTaskInfo.IsUrgent,
|
||||
TaskName = item.ReadingName,
|
||||
// 原任务是全局任务 加0.03 就好
|
||||
VisitTaskNum = originalTaskInfo.VisitTaskNum + 0.03m,
|
||||
|
||||
Reference in New Issue
Block a user