diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 99b2d8a83..d9fae9d96 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -339,7 +339,7 @@ 访视读片任务 - + 访视读片任务 diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs index f6b5ab4d5..92703f5ca 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs @@ -14,6 +14,7 @@ using IRaCIS.Core.Infra.EFCore.Common; using IRaCIS.Core.Infrastructure; using MassTransit; using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; using System.Linq.Dynamic.Core; using Subject = IRaCIS.Core.Domain.Models.Subject; @@ -46,6 +47,7 @@ public class VisitTaskService(IRepository _visitTaskRepository, IRepository _readingCustomTagRepository, IRepository _taskInfluenceRepository, IRepository _trialQCQuestionAnswerRepository, + ILogger _logger, IRepository _subjectCriteriaEvaluationVisitStudyFilterRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IVisitTaskService { @@ -1332,7 +1334,9 @@ public class VisitTaskService(IRepository _visitTaskRepository, throw new BusinessValidationFailedException(_localizer["VisitTask_BackendData"]); } - Console.WriteLine("重阅申请状态", (int)task.ReReadingApplyState); + _logger.LogError("重阅申请状态", (int)task.ReReadingApplyState); + Console.WriteLine("重阅申请状态", (int)task.ReReadingApplyState); + if (task.ReReadingApplyState == ReReadingApplyState.DocotorHaveApplyed || task.ReReadingApplyState == ReReadingApplyState.TrialGroupHaveApplyed || task.ReReadingApplyState == ReReadingApplyState.Agree) { //---重阅已申请,或者重阅已同意状态下不允许申请重阅 @@ -2119,7 +2123,7 @@ public class VisitTaskService(IRepository _visitTaskRepository, } else if (agreeReReadingCommand.RequestReReadingResultEnum == RequestReReadingResult.Reject) { - + _logger.LogError("重阅驳回状态", (int)origenalTask.ReReadingApplyState); if (origenalTask.ReReadingApplyState == ReReadingApplyState.DocotorHaveApplyed || origenalTask.ReReadingApplyState == ReReadingApplyState.TrialGroupHaveApplyed) { await _visitTaskRepository.UpdatePartialFromQueryAsync(t => t.Id == origenalTask.Id, u => new VisitTask()