This commit is contained in:
he
2022-08-05 17:01:04 +08:00
parent c4e727e055
commit e6239aef8b
@@ -181,7 +181,7 @@ namespace IRaCIS.Core.Application.Contracts
{
if (await _trialQcQuestionRepository.AnyAsync(x => x.Id != addOrEditTrialQCQuestionConfigure.Id && x.ShowOrder == addOrEditTrialQCQuestionConfigure.ShowOrder))
if (await _trialQcQuestionRepository.AnyAsync(x =>x.TrialId== addOrEditTrialQCQuestionConfigure.TrialId&& x.Id != addOrEditTrialQCQuestionConfigure.Id && x.ShowOrder == addOrEditTrialQCQuestionConfigure.ShowOrder))
{
throw new BusinessValidationFailedException("序号重复,操作失败");