From 7af4d9d0181f2442bc60b218ec65bfaf831d0422 Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期四, 02 九月 2021 09:27:22 +0800
Subject: [PATCH] nothing

---
 src/BLL/Demo.BillView/PRD/Pro_SCLLSH.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/BLL/Demo.BillView/PRD/Pro_SCLLSH.cs b/src/BLL/Demo.BillView/PRD/Pro_SCLLSH.cs
index e9b04cc..b71d228 100644
--- a/src/BLL/Demo.BillView/PRD/Pro_SCLLSH.cs
+++ b/src/BLL/Demo.BillView/PRD/Pro_SCLLSH.cs
@@ -34,9 +34,10 @@
             e.FieldKeys.Add("FBaseJoinQty");
             e.FieldKeys.Add("FDayPlanBillNo");
             e.FieldKeys.Add("FDayPlanFentryId");
+            e.FieldKeys.Add("FBaseActualQty");
         }
         /// <summary>
-        ///鍙嶅鏍� 鍙嶆洿鏂版棩璁″垝鐢ㄦ枡娓呭崟棰嗘枡鏁伴噺
+        ///瀹℃牳鏇存柊鏃ヨ鍒掔敤鏂欐竻鍗曢鏂欐暟閲�
         /// </summary>
         /// <param name="e"></param>
         public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
@@ -52,12 +53,13 @@
                             as DynamicObjectCollection;
                 foreach (var entryRow in entryRows)
                 {
-                    //鐢熶骇鐢ㄦ枡娓呭崟涓虹┖鏃�
-                    if (Convert.ToString(entryRow["FDayPlanBillNo"]) == "")
-                        continue;
                     string fentryId = entryRow["FDayPlanFentryId"].ToString();
-                    sql = string.Format($"/*dialect*/update Sc_DayPlanPPBomBillSub set  FPickedQty = (select sum(FBaseActualQty) from T_PRD_PICKMTRLDATA where FDayPlanFentryId = {fentryId})where FEntryID = {fentryId} ");
-                    LogHelper.Info("棰嗘枡鍗曠殑鏃ヨ鍒掔敤鏂欐竻鍗旾D:" + fentryId);
+                    if (fentryId == "0")
+                        continue;
+                    sql = string.Format($"/*dialect*/update Sc_DayPlanPPBomBillSub set  FPickedQty = FPickedQty + {Convert.ToDecimal(entryRow["BaseActualQty"])} where FEntryID = {fentryId} ");
+                    //LogHelper.Info("棰嗘枡鍗曠殑鏃ヨ鍒掔敤鏂欐竻鍗旾D:" + fentryId);
+                    sqlList.Add(sql);
+                    sql = string.Format($"/*dialect*/update T_PRD_PICKMTRLDATA set  FisFX =  1 where FentryId = {entryRow["Id"]}");
                     sqlList.Add(sql);
                 }
             }

--
Gitblit v1.9.1