修改一版

This commit is contained in:
he
2022-08-05 09:57:29 +08:00
parent 0500dca22a
commit 8153e2d64e
2 changed files with 38 additions and 4 deletions
@@ -1426,10 +1426,36 @@ namespace IRaCIS.Application.Services
/// 添加肿瘤学阅片任务
/// </summary>
/// <returns></returns>
public async Task AddOncologyTask(Guid readModuleId)
{
}
//public async Task<bool> AddOncologyTask(Guid readModuleId)
//{
// var readModuleInfo=await _readModuleRepository.Where(x=>x.Id==readModuleId&& x.ModuleType == ModuleTypeEnum.Oncology).Select(x => new ReadingGenerataTaskDTO
// {
// IsUrgent = x.IsUrgent ?? false,
// SubjectId = x.SubjectId,
// ReadingName = x.ModuleName,
// VisitNum = x.VisitNum,
// ReadModuleId = x.Id,
// ReadingCategory = ReadingCategory.Oncology,
// }).ToListAsync();
// // 如果当前是肿瘤学
// if (readModuleInfo.Count != 0)
// {
// if (taskInfo.JudgeVisitTaskId == null && (await _visitTaskRepository.Where(x => x.TaskState == TaskState.Effect && x.ReadingCategory == ReadingCategory.Global
// && x.ReadingTaskState == ReadingTaskState.HaveSigned
// ).CountAsync() == (int)readingType))
// {
// // 有裁判要等裁判完成之后才进行添加
// await _visitTaskHelpeService.AddTaskAsync(new GenerateTaskCommand()
// {
// ReadingCategory = GenerateTaskCategory.Oncology,
// TrialId = taskInfo.TrialId,
// ReadingGenerataTaskList = needReadList
// });
// }
// }
//}
/// <summary>