修改一版
This commit is contained in:
@@ -355,6 +355,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
/// 是否是裁判问题
|
||||
/// </summary>
|
||||
public bool IsJudgeQuestion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片数量
|
||||
/// </summary>
|
||||
public int ImageCount { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -591,6 +596,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
public string TypeValue { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; } = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 图片数量
|
||||
/// </summary>
|
||||
public int ImageCount { get; set; } = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -749,6 +749,12 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
}
|
||||
|
||||
if (indto.ParentId == indto.RelevanceId && indto.ParentId != null && indto.ParentTriggerValue != indto.RelevanceValue)
|
||||
{
|
||||
throw new BusinessValidationFailedException("显示依赖父问题和必填依赖的问题为同一个,但答案互斥,操作失败");
|
||||
}
|
||||
|
||||
|
||||
if (await _readingQuestionTrialRepository.AnyAsync(x => x.Id != indto.Id && x.ShowOrder == indto.ShowOrder&&x.TrialId==indto.TrialId&&x.ReadingQuestionCriterionTrialId==indto.ReadingQuestionCriterionTrialId&&x.ReadingCriterionPageId==indto.ReadingCriterionPageId))
|
||||
{
|
||||
throw new BusinessValidationFailedException("问题编号重复");
|
||||
|
||||
Reference in New Issue
Block a user