Uat_Study
he 2022-08-26 16:25:58 +08:00
parent 5ba8b3b559
commit a30594ccaa
1 changed files with 25 additions and 0 deletions

View File

@ -286,6 +286,31 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Result(success);
}
/// <summary>
/// 获取项目表格其他问题
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<CriterionOtherQuestionOutDto>> GetReadingTableOtherQuestionTrial(GetReadingTableOtherQuestionSystemInDto inDto)
{
var types = new List<string>()
{
"select","radio"
};
var questionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
.Where(x => types.Contains(x.Type))
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.Select(x => new CriterionOtherQuestionOutDto()
{
QuestionId = x.Id,
QuestionName = x.QuestionName,
TypeValue = x.TypeValue,
}).ToListAsync();
return questionList;
}
/// <summary>
/// 获取系统表格其他问题