From fa8310bfd01c7f3123077d6d2f6a96a92645a034 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 09 四月 2026 08:43:30 +0800
Subject: [PATCH] 板材填了就减少库存 根据 板材规格 数量(张)和 发版套数 算出库存需要减少的量,减少库存 完成
---
CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/CoreDeliverOrderBLL.cs
index dcd848f..1f57378 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);
@@ -174,7 +193,7 @@
}
if (!string.IsNullOrEmpty(shipAddress))
- Condition += " and b.shipAddress = '" + shipAddress + "'";
+ Condition += " and b.shipAddress like '%" + shipAddress + "%'";
if (!string.IsNullOrEmpty(BuyerName))
Condition += " and c.Keyid = '" + BuyerName + "'";
@@ -193,7 +212,7 @@
{
new Criterion("", Condition),
- new Criterion("orderBy"," MakeTime ")
+ new Criterion("orderBy"," DeliveryMoble asc,MakeTime asc ")
};
query.Criteria = criterias;
return _ICoreDeliverOrderDAL.SelectModelPage(query, pa);
@@ -242,7 +261,7 @@
}
if (!string.IsNullOrEmpty(shipAddress))
- Condition += " and b.shipAddress = '" + shipAddress + "'";
+ Condition += " and b.shipAddress like '%" + shipAddress + "%'";
if (!string.IsNullOrEmpty(BuyerName))
Condition += " and c.Keyid = '" + BuyerName + "'";
--
Gitblit v1.9.1