修改一版
This commit is contained in:
@@ -203,10 +203,14 @@ namespace IRaCIS.Application.Services
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<string>> GetSystemGroupNameList(GetTrialGroupNameListInDto inDto)
|
||||
public async Task<List<GetTrialGroupNameOutDto>> GetSystemGroupNameList(GetTrialGroupNameListInDto inDto)
|
||||
{
|
||||
var result = await _readingQuestionSystemRepository.Where(x => x.ReadingQuestionCriterionSystemId == inDto.CriterionId && x.Type == ReadingQestionType.Group).OrderBy(t=>t.ShowOrder)
|
||||
.Select(x => x.GroupName).ToListAsync();
|
||||
.Select(x => new GetTrialGroupNameOutDto() {
|
||||
GroupId=x.Id,
|
||||
GroupName=x.GroupName,
|
||||
|
||||
} ).ToListAsync();
|
||||
return result;
|
||||
|
||||
}
|
||||
@@ -250,6 +254,7 @@ namespace IRaCIS.Application.Services
|
||||
QuestionName = x.QuestionName.LanguageName(x.QuestionEnName,_userInfo.IsEn_Us),
|
||||
TypeValue = x.TypeValue,
|
||||
GroupName = x.GroupName,
|
||||
GroupId=x.GroupId,
|
||||
}).ToListAsync();
|
||||
|
||||
return questionList;
|
||||
@@ -590,11 +595,15 @@ namespace IRaCIS.Application.Services
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<string>> GetTrialGroupNameList(GetTrialGroupNameListInDto inDto)
|
||||
public async Task<List<GetTrialGroupNameOutDto>> GetTrialGroupNameList(GetTrialGroupNameListInDto inDto)
|
||||
{
|
||||
var result = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.CriterionId && x.Type == ReadingQestionType.Group)
|
||||
.Where(x => x.ReadingCriterionPageId == inDto.ReadingCriterionPageId).OrderBy(t => t.ShowOrder)
|
||||
.Select(x =>x.GroupName).ToListAsync();
|
||||
.Select(x => new GetTrialGroupNameOutDto
|
||||
{
|
||||
GroupId=x.Id,
|
||||
GroupName=x.GroupName,
|
||||
}).ToListAsync();
|
||||
|
||||
return result;
|
||||
|
||||
@@ -867,6 +876,10 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
question.ParentId = questionRelation[question.ParentId??default(Guid)];
|
||||
}
|
||||
if (question.GroupId != null)
|
||||
{
|
||||
question.GroupId = questionRelation[question.GroupId ?? default(Guid)];
|
||||
}
|
||||
if (question.RelevanceId != null)
|
||||
{
|
||||
question.RelevanceId = questionRelation[question.RelevanceId ?? default(Guid)];
|
||||
|
||||
Reference in New Issue
Block a user