Uat_Study
parent
5ba8b3b559
commit
a30594ccaa
|
@ -286,6 +286,31 @@ namespace IRaCIS.Application.Services
|
||||||
return ResponseOutput.Result(success);
|
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>
|
/// <summary>
|
||||||
/// 获取系统表格其他问题
|
/// 获取系统表格其他问题
|
||||||
|
|
Loading…
Reference in New Issue