修改
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-10-24 15:48:58 +08:00
parent aa1ecaf1fe
commit 0b2c707ec7
2 changed files with 9 additions and 3 deletions

View File

@ -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>();
} }

View File

@ -151,6 +151,9 @@ namespace IRaCIS.Core.Application.Service
.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
{ {
@ -173,6 +176,7 @@ namespace IRaCIS.Core.Application.Service
.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
{ {