修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
aa1ecaf1fe
commit
0b2c707ec7
|
@ -1766,7 +1766,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
public Guid QuestionId { get; set; }
|
public Guid QuestionId { get; set; }
|
||||||
|
|
||||||
public string Type { get; set; }
|
public string Type { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public List<string> TypeList { get; set; } = new List<string>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
var result = await _readingTableQuestionTrialRepository
|
var result = await _readingTableQuestionTrialRepository
|
||||||
|
|
||||||
.Where(x => x.ReadingQuestionId == inDto.QuestionId)
|
.Where(x => x.ReadingQuestionId == inDto.QuestionId)
|
||||||
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
||||||
|
.WhereIf(inDto.TypeList.Count() > 0, x => inDto.TypeList.Contains(x.Type))
|
||||||
|
|
||||||
|
|
||||||
.OrderBy(x => x.ShowOrder)
|
.OrderBy(x => x.ShowOrder)
|
||||||
.ProjectTo<GetCalculateTableQuestionsOutDto>(_mapper.ConfigurationProvider, new
|
.ProjectTo<GetCalculateTableQuestionsOutDto>(_mapper.ConfigurationProvider, new
|
||||||
{
|
{
|
||||||
|
@ -172,7 +175,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
var result = await _readingTableQuestionSystemRepository
|
var result = await _readingTableQuestionSystemRepository
|
||||||
|
|
||||||
.Where(x => x.ReadingQuestionId == inDto.QuestionId)
|
.Where(x => x.ReadingQuestionId == inDto.QuestionId)
|
||||||
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type == inDto.Type)
|
||||||
|
.WhereIf(inDto.TypeList.Count() > 0, x => inDto.TypeList.Contains(x.Type))
|
||||||
.OrderBy(x => x.ShowOrder)
|
.OrderBy(x => x.ShowOrder)
|
||||||
.ProjectTo<GetCalculateTableQuestionsOutDto>(_mapper.ConfigurationProvider, new
|
.ProjectTo<GetCalculateTableQuestionsOutDto>(_mapper.ConfigurationProvider, new
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue