From 24fbbc0e3bd37c0c47902dd1534aa4742846c5d6 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 12 Aug 2022 16:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Reading/OrganInfoService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Reading/OrganInfoService.cs b/IRaCIS.Core.Application/Service/Reading/OrganInfoService.cs index 602bf2e01..6044a8f01 100644 --- a/IRaCIS.Core.Application/Service/Reading/OrganInfoService.cs +++ b/IRaCIS.Core.Application/Service/Reading/OrganInfoService.cs @@ -8,6 +8,8 @@ using IRaCIS.Core.Domain.Models; using Microsoft.AspNetCore.Mvc; using IRaCIS.Core.Application.Interfaces; using IRaCIS.Core.Application.ViewModel; +using IRaCIS.Core.Infra.EFCore.Common; + namespace IRaCIS.Core.Application.Service { /// @@ -39,6 +41,7 @@ namespace IRaCIS.Core.Application.Service public async Task> GetOrganInfoList(OrganInfoQuery inQuery) { var organInfoQueryable = _organInfoRepository + .WhereIf(!inQuery.TypeName.IsNullOrEmpty(),x=>x.TypeName==inQuery.TypeName) .Where(x=>x.TypeName== inQuery.TypeName) .ProjectTo(_mapper.ConfigurationProvider); return await organInfoQueryable.ToListAsync();