Uat_Study
he 2023-01-11 15:04:28 +08:00
parent f1a70bb6ad
commit ce06163a4c
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> AddDoctorCriterionFile(AddDoctorCriterionFileDto inDto) public async Task<IResponseOutput> AddDoctorCriterionFile(AddDoctorCriterionFileDto inDto)
{ {
if (await _doctorCriterionFileRepository.AnyAsync(x => x.DoctorId == inDto.DoctorId && x.FileType == inDto.FileType && x.IsEnable && x.CriterionType == inDto.CriterionType && x.Id != inDto.Id)) if (await _doctorCriterionFileRepository.AnyAsync(x =>inDto.IsEnable&& x.DoctorId == inDto.DoctorId && x.FileType == inDto.FileType && x.IsEnable && x.CriterionType == inDto.CriterionType && x.Id != inDto.Id))
{ {
throw new BusinessValidationFailedException("当前标准已添加过此类型文件"); throw new BusinessValidationFailedException("当前标准已添加过此类型文件");
} }