修改
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-12-02 17:32:15 +08:00
parent 948c0d32ab
commit ce8611e138
1 changed files with 8 additions and 0 deletions

View File

@ -260,6 +260,14 @@ namespace IRaCIS.Core.Application.Service
inDto.Indication = "默认";
inDto.IndicationEn = "Default";
}
var exists = await _doctorSummarizeRepository
.WhereIf(_userInfo.IsEn_Us, x => x.IndicationEn == inDto.IndicationEn)
.WhereIf(!_userInfo.IsEn_Us, x => x.Indication == inDto.Indication)
.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null&&x.Id!=inDto.Id);
if (exists)
{
throw new BusinessValidationFailedException(_localizer["DoctorSummarize_repeat"]);
}
}