先删除
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-12-02 15:21:56 +08:00
parent 7dbf99e1c8
commit e53b56f0d4
1 changed files with 3 additions and 0 deletions

View File

@ -276,6 +276,9 @@ namespace IRaCIS.Core.Application.Service
});
break;
case SaveSummarizeInfo.SaveAndAdd:
await _doctorSummarizeRepository.BatchDeleteNoTrackingAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == inDto.TrialId);
var exists = await _doctorSummarizeRepository.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null &&
(x.IndicationEn == inDto.IndicationEn && x.Indication == inDto.Indication));
if (exists)