From f7f525b79193f1045b8af2b41320fcf005c47aba Mon Sep 17 00:00:00 2001
From: admin <admin@admin.com>
Date: 星期四, 07 十一月 2024 13:42:38 +0800
Subject: [PATCH] 计划库存接口优化

---
 _Main/BL/Type_InterfaceDataset/StaticMethod_PushPlanInventoryData.qbl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_InterfaceDataset/StaticMethod_PushPlanInventoryData.qbl b/_Main/BL/Type_InterfaceDataset/StaticMethod_PushPlanInventoryData.qbl
index e2d4376..4503d47 100644
--- a/_Main/BL/Type_InterfaceDataset/StaticMethod_PushPlanInventoryData.qbl
+++ b/_Main/BL/Type_InterfaceDataset/StaticMethod_PushPlanInventoryData.qbl
@@ -11,6 +11,7 @@
   [*
     table         := selectobject( interfaceDataset, InventoryPlanArchiveVersion, version, not version.IsShow() );
     
+    totalRow      := 0;
     interfaceTime := DateTime::ActualTime().Format( "Y-M2-D2 H2:m:s" );
     
     jsonarray     := JSON::Array();
@@ -28,6 +29,7 @@
                                    .Add( "fac", ifexpr( r.Unit().Regex( "CC" ), "CC", "DL" ) )
                                    .Add( "interfaceTime", interfaceTime ).Build();
           jsonarray.Add( idsjson );
+          totalRow++;
         }
       }
     }
@@ -41,7 +43,8 @@
                                                   Name              := "Plan inventory data", 
                                                   InterfaceDateTime := DateTime::ActualTime(), 
                                                   Message           := "璁″垝搴撳瓨鏁版嵁", 
-                                                  RequestBody       := requestbody );
+                                                  RequestBody       := requestbody,
+                                                  TotalRow          := totalRow );
     
     InterfaceLoginfo::CallInterfaceForDataCenter_PlanInventory( interfaceDataset, loginfo );
   *]

--
Gitblit v1.9.3