验证修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
ab91d360b1
commit
6a99e3104a
|
|
@ -847,7 +847,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 新增修改想想项目表格问题
|
/// 新增修改项目表格问题
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="indto"></param>
|
/// <param name="indto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
@ -861,6 +861,13 @@ namespace IRaCIS.Core.Application.Service
|
||||||
//---问题编号重复
|
//---问题编号重复
|
||||||
throw new BusinessValidationFailedException(_localizer["ReadingQuestion_IdDup"]);
|
throw new BusinessValidationFailedException(_localizer["ReadingQuestion_IdDup"]);
|
||||||
}
|
}
|
||||||
|
if (indto.IsPreinstall)
|
||||||
|
{
|
||||||
|
if (await _readingTableQuestionTrialRepository.AnyAsync(x => x.ReadingQuestionId == indto.ReadingQuestionId && x.Id != indto.Id && x.IsPreinstall))
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException(_localizer["ReadingQuestion_OnlyOnePreinstall"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
indto.ParentTriggerValue = string.Join(',', indto.ParentTriggerValueList);
|
indto.ParentTriggerValue = string.Join(',', indto.ParentTriggerValueList);
|
||||||
indto.RelevanceValue = string.Join(',', indto.RelevanceValueList);
|
indto.RelevanceValue = string.Join(',', indto.RelevanceValueList);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue