From 9dec67fc7bd6064995d4f9fdc937d0cf9e592012 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 18 三月 2026 13:01:58 +0800
Subject: [PATCH] 20260318 除“书刊”、“画册”外,其他所有订单类型的“构件”和“P数”默认空白

---
 CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
index c069f65..040e438 100644
--- a/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
+++ b/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
@@ -164,9 +164,28 @@
         /// <param name="pa"></param>
         /// <returns></returns>
         public IEnumerable<CoreDeliverOrder> SelectModelPage(Pagination pa, Guid FirmId, int? DriverId, string shipAddress,
-            string BuyerName, string createTimeStart, string createTimeEnd)
+            string BuyerName, string createTimeStart, string createTimeEnd, string OrderState)
         {
-            string Condition = " and b.FirmId ='" + FirmId + "' and a.OrderState = 0 ";
+            string Condition = " and b.FirmId ='" + FirmId + "' and b.DeliverState != 2 ";
+
+            if (!string.IsNullOrEmpty(OrderState))
+            {
+                if (OrderState != "4")
+                {
+                    Condition += " and  a.OrderState = " + OrderState + " ";
+                }
+                else
+                {
+                    Condition += " and a.OrderState  in( 0,1 ) ";
+                }
+            }
+            else
+            {
+                Condition += " and a.OrderState  in( 0,1,2 ) ";
+
+
+            }
+
             if (DriverId.HasValue)
             {
                var oA_Staff  = staffBLL.GetModelByKeyid(DriverId);

--
Gitblit v1.9.1