修改一版

Uat_Study
he 2022-10-19 17:00:09 +08:00
parent 34047fd3ba
commit 5fb96ef04a
2 changed files with 10 additions and 4 deletions

View File

@ -1411,7 +1411,13 @@ namespace IRaCIS.Application.Services
).Select(x => x.Id).FirstOrDefaultAsync();
await AddOncologyTask(oncologyReadId);
if (await _visitTaskRepository.AnyAsync(x => x.Id == visitTaskId && x.JudgeVisitTaskId == null))
{
await AddOncologyTask(oncologyReadId);
}
break;
}
}

View File

@ -280,7 +280,7 @@ namespace IRaCIS.Application.Services
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[NonDynamicMethod]
[HttpPost]
public async Task<IResponseOutput> SubmitJudgeVisitTaskResult(SaveJudgeVisitTaskResult inDto)
{
await VerifyTaskIsSign(inDto.VisitTaskId);
@ -292,10 +292,10 @@ namespace IRaCIS.Application.Services
SignTime = DateTime.Now,
JudgeResultImagePath = inDto.JudgeResultImagePath,
});
await _visitTaskRepository.SaveChangesAsync();
// 需要判断是否添加肿瘤学任务
var taskInfo = await _visitTaskRepository.Where(x => x.JudgeVisitTaskId == inDto.VisitTaskId).FirstNotNullAsync();
if (taskInfo.ReadingCategory == ReadingCategory.Judge)
if (taskInfo.ReadingCategory == ReadingCategory.Global)
{
if (taskInfo.SouceReadModuleId == null)
{