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)