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

IRC_NewDev
he 2024-12-03 17:37:01 +08:00
parent ce8611e138
commit da2209cf95
1 changed files with 2 additions and 2 deletions

View File

@ -261,8 +261,8 @@ namespace IRaCIS.Core.Application.Service
inDto.IndicationEn = "Default"; inDto.IndicationEn = "Default";
} }
var exists = await _doctorSummarizeRepository var exists = await _doctorSummarizeRepository
.WhereIf(_userInfo.IsEn_Us, x => x.IndicationEn == inDto.IndicationEn) .Where( x => x.IndicationEn == inDto.IndicationEn|| x.Indication == inDto.Indication)
.WhereIf(!_userInfo.IsEn_Us, x => x.Indication == inDto.Indication)
.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null&&x.Id!=inDto.Id); .AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null&&x.Id!=inDto.Id);
if (exists) if (exists)
{ {