From edbafec06f5d13bad5dd92bec35b155deb338995 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 25 Feb 2025 13:55:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=87=BA=E5=B7=AE=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index f6b88f2f..58a68ec6 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -124,7 +124,7 @@ public class GainfoService : IGainfoService : _gainfoStore.Queryable(request.Status) .WhereIF(request.SearchType.HasValue, where) .LeftJoin((gainfo, department) => gainfo.DepartmentNo == department.No) - .WhereIF(request.SearchType.HasValue == false, gainfo => SqlFunc.Subqueryable() + .WhereIF(request.SearchType == GainfoSearchEnumType.Outsource, gainfo => SqlFunc.Subqueryable() .Where(p => p.Code == gainfo.Code && factories.Contains(p.Destination) && SqlFunc.DateIsSame(p.BeginDate, today)) .Any()) .WhereIF(request.Search.IsPresent() && request.SearchType != GainfoSearchEnumType.Outsource, gainfo =>