Uat_Study
he 2022-08-12 16:13:26 +08:00
parent 857067a54f
commit 24fbbc0e3b
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,8 @@ using IRaCIS.Core.Domain.Models;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Application.Interfaces; using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel; using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Infra.EFCore.Common;
namespace IRaCIS.Core.Application.Service namespace IRaCIS.Core.Application.Service
{ {
/// <summary> /// <summary>
@ -39,6 +41,7 @@ namespace IRaCIS.Core.Application.Service
public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery) public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery)
{ {
var organInfoQueryable = _organInfoRepository var organInfoQueryable = _organInfoRepository
.WhereIf(!inQuery.TypeName.IsNullOrEmpty(),x=>x.TypeName==inQuery.TypeName)
.Where(x=>x.TypeName== inQuery.TypeName) .Where(x=>x.TypeName== inQuery.TypeName)
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider); .ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
return await organInfoQueryable.ToListAsync(); return await organInfoQueryable.ToListAsync();