Uat_Study
parent
f1a70bb6ad
commit
ce06163a4c
|
@ -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("当前标准已添加过此类型文件");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue