@@ -277,7 +277,7 @@ namespace IRaCIS.Core.Application.Service
|
|||||||
break;
|
break;
|
||||||
case SaveSummarizeInfo.SaveAndAdd:
|
case SaveSummarizeInfo.SaveAndAdd:
|
||||||
var exists = await _doctorSummarizeRepository.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null &&
|
var exists = await _doctorSummarizeRepository.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null &&
|
||||||
(x.IndicationEn == inDto.IndicationEn || x.Indication == inDto.Indication));
|
(x.IndicationEn == inDto.IndicationEn && x.Indication == inDto.Indication));
|
||||||
if (exists)
|
if (exists)
|
||||||
{
|
{
|
||||||
throw new BusinessValidationFailedException(_localizer["DoctorSummarize_repeat"]);
|
throw new BusinessValidationFailedException(_localizer["DoctorSummarize_repeat"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user