diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs index cbb27d441..05078c075 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs @@ -224,7 +224,7 @@ namespace IRaCIS.Core.Application.Service [HttpPost] public async Task AddOrUpdateGneralSituation(SummarizeInfoDto inDto) { - if (inDto.TrialId != null) + if (inDto.TrialId != null&&inDto.Id==null) { var systemCount = await _doctorSummarizeRepository.Where(x => x.DoctorId == inDto.DoctorId && x.TrialId == null).CountAsync(); if (systemCount == 0) @@ -251,6 +251,7 @@ namespace IRaCIS.Core.Application.Service /// /// /// + [HttpPost] public async Task GetSummarizeInfo(GetSummarizeInfoInDto inDto) { var result = await _doctorSummarizeRepository.Where(t => t.Id == inDto.DoctorId && t.TrialId == inDto.TrialId)