Uat_Study
parent
1c4323a56c
commit
d28d8e0592
|
@ -1003,11 +1003,11 @@ namespace IRaCIS.Application.Services
|
|||
var trialIdList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionSystemId == indto.Id && x.IsJudgeQuestion && x.JudgeType != JudgeTypeEnum.None)
|
||||
.Select(x => x.TrialId).ToListAsync();
|
||||
|
||||
if (trialIdList.Count>0)
|
||||
{
|
||||
var trialNames = await _trialRepository.Where(x => trialIdList.Contains(x.Id)).Select(x => x.ExperimentName).ToListAsync();
|
||||
throw new BusinessValidationFailedException("当前问题在项目"+ string.Join(',', trialNames) + "设置了裁判标准了,修改失败");
|
||||
}
|
||||
//if (trialIdList.Count>0)
|
||||
//{
|
||||
// var trialNames = await _trialRepository.Where(x => trialIdList.Contains(x.Id)).Select(x => x.ExperimentName).ToListAsync();
|
||||
// throw new BusinessValidationFailedException("当前问题在项目"+ string.Join(',', trialNames) + "设置了裁判标准了,修改失败");
|
||||
//}
|
||||
}
|
||||
|
||||
if (await _readingQuestionSystemRepository.AnyAsync(x => x.Id != indto.Id && x.ShowOrder == indto.ShowOrder&&x.ReadingQuestionCriterionSystemId==indto.ReadingQuestionCriterionSystemId))
|
||||
|
|
Loading…
Reference in New Issue