修改一版
parent
6f1a92076e
commit
fee3b47eed
|
@ -355,6 +355,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// 是否是裁判问题
|
/// 是否是裁判问题
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsJudgeQuestion { get; set; }
|
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 string TypeValue { get; set; }
|
||||||
|
|
||||||
public bool IsEnable { get; set; } = false;
|
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))
|
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("问题编号重复");
|
throw new BusinessValidationFailedException("问题编号重复");
|
||||||
|
|
|
@ -79,6 +79,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string GroupName { get; set; }
|
public string GroupName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 图片数量
|
||||||
|
/// </summary>
|
||||||
|
public int ImageCount { get; set; } = 1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue