From 716b29fea5945ca7dc4419d9f1f980c379312b32 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期四, 24 十月 2024 18:46:48 +0800
Subject: [PATCH] 修改问题

---
 Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
index c8f8338..7af51a0 100644
--- a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
+++ b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
@@ -493,6 +493,7 @@
                     .GroupBy((a, b) => new
                     {
                         a.PalletNo,
+                        a.BindNo,
                         a.BoxNo,
                         a.SkuNo,
                         a.SkuName,
@@ -510,6 +511,7 @@
                     .Select((a, b) => new BoxInfoDto()
                     {
                         BoxNo = a.BoxNo,
+                        BindNo = a.BindNo,
                         PalletNo = a.PalletNo,
                         Qty = SqlFunc.AggregateSum(a.Qty),
                         FullQty = a.FullQty,
@@ -540,9 +542,10 @@
         /// <param name="boxNo">绠辩爜</param>
         /// <param name="boxNo3">鏀爜</param>
         /// <returns></returns>
-        public List<BoxInfoDto> GetBoxInfoByBoxNo(string boxNo, string boxNo3)
+        public List<BoxInfoDto> GetBoxInfoByBoxNo(string bindNo, string boxNo, string boxNo3)
         {
             Expression<Func<BllBoxInfo, bool>> item = Expressionable.Create<BllBoxInfo>()
+                .AndIF(!string.IsNullOrWhiteSpace(bindNo), it => it.BindNo == int.Parse(bindNo))
                 .AndIF(!string.IsNullOrWhiteSpace(boxNo), it => it.BoxNo == boxNo.Trim())
                 .AndIF(!string.IsNullOrWhiteSpace(boxNo3), it => it.BoxNo3.Contains(boxNo3.Trim()))
                 .And(m => m.IsDel == "0")

--
Gitblit v1.8.0