修改
This commit is contained in:
@@ -86,7 +86,7 @@ namespace IRaCIS.Application.Services
|
||||
var result =await _readingQuestionTrialRepository
|
||||
|
||||
.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialCriterionId)
|
||||
.Where(x => x.Type == "number")
|
||||
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
||||
.OrderBy(x => x.ShowOrder)
|
||||
.Select(x => new GetCalculateQuestionsOutDto
|
||||
(){
|
||||
@@ -111,7 +111,7 @@ namespace IRaCIS.Application.Services
|
||||
var result = await _readingTableQuestionTrialRepository
|
||||
|
||||
.Where(x => x.ReadingQuestionId == inDto.QuestionId)
|
||||
.Where(x=>x.Type== "number")
|
||||
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
||||
.OrderBy(x => x.ShowOrder)
|
||||
.Select(x => new GetCalculateTableQuestionsOutDto
|
||||
()
|
||||
@@ -125,6 +125,31 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取标准所有表格数值问题
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<GetCalculateTableQuestionsOutDto>> GetCalculateAllTableQuestions(GetCalculateQuestionsInDto inDto)
|
||||
{
|
||||
|
||||
var result = await _readingTableQuestionTrialRepository
|
||||
|
||||
.Where(x => x.TrialCriterionId == inDto.TrialCriterionId)
|
||||
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
||||
.OrderBy(x => x.ShowOrder)
|
||||
.Select(x => new GetCalculateTableQuestionsOutDto
|
||||
()
|
||||
{
|
||||
TableQuestionId = x.Id,
|
||||
TableQuestionName = x.QuestionName
|
||||
|
||||
}).ToListAsync();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user