From 466b7688470f8f2368afca59d4f08b159ea53d11 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Wed, 4 Jan 2023 08:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=8F=90=E5=8D=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index eed58ca0..57748a00 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -145,7 +145,8 @@ namespace Myshipping.Application { List userlist = await _right.GetDataScopeList(351064299098181); //List userlist = await DataFilterExtensions.GetDataScopeIdList(); - var entities = await _rep.AsQueryable().Where(x => x.ParentId == 0) + var entities = await _rep.AsQueryable(). + WhereIF(string.IsNullOrWhiteSpace(input.HBLNO),x => x.ParentId == 0) .WhereIF(!string.IsNullOrWhiteSpace(input.BSNO), u => u.BSNO.Contains(input.BSNO)) .WhereIF(!string.IsNullOrWhiteSpace(input.BSSTATUS), u => u.BSSTATUS == input.BSSTATUS) .WhereIF(input.BBSDATE != null, u => u.BSDATE >= input.BBSDATE)