修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
393bce5f5c
commit
fa0e4f7326
|
@ -262,8 +262,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var exists = await _doctorSummarizeRepository.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null &&
|
var exists = await _doctorSummarizeRepository
|
||||||
(x.IndicationEn == inDto.IndicationEn && x.Indication == inDto.Indication));
|
.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);
|
||||||
if (exists)
|
if (exists)
|
||||||
{
|
{
|
||||||
throw new BusinessValidationFailedException(_localizer["DoctorSummarize_repeat"]);
|
throw new BusinessValidationFailedException(_localizer["DoctorSummarize_repeat"]);
|
||||||
|
|
Loading…
Reference in New Issue