From 832d30b6e1fb83caf641f320c0ba5ba0b8519e5d Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 23 Apr 2025 10:48:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9F=A5=E8=AF=A2=E5=87=BA=E5=B7=AE?= =?UTF-8?q?=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 7725311b..7e4e14ef 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -125,7 +125,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.BusinessTrip, 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 =>