Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
2fdd7bf464
|
@ -124,9 +124,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<GetTrialQuestionExportResultOutDto> GetTrialQuestionExportResult(GetTrialQuestionExportResultInDto inDto)
|
public async Task<GetTrialQuestionExportResultOutDto> GetTrialQuestionExportResult(GetTrialQuestionExportResultInDto inDto)
|
||||||
{
|
{
|
||||||
|
List<string> notShowType=new List<string>() { ReadingQestionType.Group, ReadingQestionType.Screenshot, ReadingQestionType.Summary, ReadingQestionType.Upload };
|
||||||
|
|
||||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
|
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
|
||||||
var questionList = await _readingQuestionTrialRepository.Where(x => x.Type != ReadingQestionType.Group && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
var questionList = await _readingQuestionTrialRepository.Where(x => !notShowType.Contains(x.Type) && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||||
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
||||||
{
|
{
|
||||||
QuestionId = x.Id,
|
QuestionId = x.Id,
|
||||||
|
@ -140,6 +141,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
var questionid = questionList.Select(x => x.QuestionId).ToList();
|
var questionid = questionList.Select(x => x.QuestionId).ToList();
|
||||||
|
|
||||||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => questionid.Contains(x.ReadingQuestionId))
|
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => questionid.Contains(x.ReadingQuestionId))
|
||||||
|
.Where(x => !notShowType.Contains(x.Type))
|
||||||
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
||||||
{
|
{
|
||||||
QuestionId = x.ReadingQuestionId,
|
QuestionId = x.ReadingQuestionId,
|
||||||
|
@ -156,7 +158,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
x.Children = tableQuestionList.Where(y => y.QuestionId == x.QuestionId).OrderBy(y => y.ShowOrder).ToList();
|
x.Children = tableQuestionList.Where(y => y.QuestionId == x.QuestionId).OrderBy(y => y.ShowOrder).ToList();
|
||||||
});
|
});
|
||||||
|
|
||||||
List<string> dicCode = new List<string>() { "1","2", "8" };
|
List<string> dicCode = new List<string>() { "1","2","8" };
|
||||||
var dicList = await _dictionaryRepository.Where(x => x.Parent.Code == "ExportResult")
|
var dicList = await _dictionaryRepository.Where(x => x.Parent.Code == "ExportResult")
|
||||||
.Where(x=> dicCode.Contains(x.Code))
|
.Where(x=> dicCode.Contains(x.Code))
|
||||||
.OrderBy(x => x.ShowOrder)
|
.OrderBy(x => x.ShowOrder)
|
||||||
|
|
|
@ -16,6 +16,21 @@ namespace IRaCIS.Core.Domain.Share
|
||||||
public static readonly string BasicTable = "basicTable";
|
public static readonly string BasicTable = "basicTable";
|
||||||
|
|
||||||
public static readonly string Group = "group";
|
public static readonly string Group = "group";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 截图
|
||||||
|
/// </summary>
|
||||||
|
public static readonly string Screenshot = "screenshot";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 小结
|
||||||
|
/// </summary>
|
||||||
|
public static readonly string Summary = "summary";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 附件
|
||||||
|
/// </summary>
|
||||||
|
public static readonly string Upload = "upload";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue