From 20d7889e98a86e9ed3dfe12b2a5ab6b3e43699c4 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期三, 20 九月 2023 20:09:59 +0800
Subject: [PATCH] 面板拉料接口优化

---
 _Main/Sys/Integration/Structure/PanelMaterialResponseResult1_to.xml                                                   |    0 
 _Main/Sys/Integration/Brokers/PanelMaterialResponseResult1.xml                                                        |    0 
 _Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl |   15 ++++++++++++++-
 _Main/Sys/Integration/Mapping/PanelMaterialResponseResult1.xml                                                        |    0 
 _Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl                                                       |   40 +++++++---------------------------------
 _Main/Sys/Integration/Structure/PanelMaterialResponseResult1_from.xml                                                 |    0 
 6 files changed, 21 insertions(+), 34 deletions(-)

diff --git "a/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl" "b/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl"
index 3692157..7a5e360 100644
--- "a/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl"
+++ "b/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl"
@@ -2,8 +2,21 @@
 #parent: #root
 ContentMapperProcessor ContentMapperReponse
 {
-  DefaultMappingName: 'PanelMaterialResponseResult'
   PosX: 330
   PosY: 450
   ReplyChannelOutputs: QuintiqEndpoint
+  ConditionalMapping
+  {
+    ExpectedValue: '/panelMaterial/send'
+    MappingName: 'PanelMaterialResponseResult1'
+    SourceMessagePath
+    {
+      Path: 'Header'
+    }
+    SourceMessagePath
+    {
+      Path: 'path'
+      SequenceNr: 1
+    }
+  }
 }
diff --git a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
index 08f1d13..5c58293 100644
--- a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
+++ b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
@@ -44,44 +44,18 @@
     
     replynvt := LibInt_MessageAccessor::CreateEmptyMessage();
     LibInt_MessageAccessor::SetHeaderProperty( replynvt, "Content-Type", "application/json" );
+    LibInt_MessageAccessor::SetHeaderProperty( replynvt, "path", "/panelMaterial/send" );
     
     rootNamedValue := replynvt.Root();
     bodyHandle := replynvt.GetHandle( "Body" );
-    petHandle := replynvt.GetHandle( "Pet" );
+    
+    //petHandle := replynvt.GetHandle( "Pet" );
     bodyNamedValue := rootNamedValue.Child( bodyHandle );
-    petNamedValue := bodyNamedValue.AddChild( petHandle );
-    categoryHandle := replynvt.GetHandle( "Category" );
-    categoryNamedValue := petNamedValue.AddChild( categoryHandle );
-    categoryIDHandle := replynvt.GetHandle( "Id" );
-    categoryIDNamedValue := categoryNamedValue.AddChild( categoryIDHandle );
-    categoryIDNamedValue.SetValue( 3 );
-    categoryNameHandle := replynvt.GetHandle( "Name" );
-    categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle );
-    categoryNameNamedValue.SetValue( "Cat" );
-    petNameHandle := replynvt.GetHandle( "Name" );
-    petNameValue := petNamedValue.AddChild( petNameHandle );
-    petNameValue.SetValue( "Pet1" );
-    petIdHandle := replynvt.GetHandle( "PetId" );
-    petIdNameValue := petNamedValue.AddChild( petIdHandle );
-    petIdNameValue.SetValue( 1 );
+    codeHandler := replynvt.GetHandle( "code" );
+    codeNamedValue := bodyNamedValue.AddChild( codeHandler );
+    codeNamedValue.SetValue( 200 );
     
-    photoUrlHandle := replynvt.GetHandle( "PhotoUrl" );
-    photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle );
-    urlHandle := replynvt.GetHandle( "Url" );
-    photoUrlNameValue.AddChild( urlHandle, "url1" );
-    
-    statusHandle := replynvt.GetHandle( "Status" );
-    statusNameValue := petNamedValue.AddChild( statusHandle );
-    statusNameValue.SetValue( "available" );
-    
-    tagHandle := replynvt.GetHandle( "Tag" );
-    tagNameValue := petNamedValue.AddChild( tagHandle );
-    tagIdHandle := replynvt.GetHandle( "Id" );
-    tagNameValue.AddChild( tagIdHandle, 123 );
-    tagNameHandle := replynvt.GetHandle( "Name" );
-    tagNameValue.AddChild( tagNameHandle, "tag1" );
-    
-    
+    info( "鍝嶅簲------------------------------------------------------------" );
     info( replynvt.ToString() );
     
     
diff --git a/_Main/Sys/Integration/Brokers/PanelMaterialResponseResult1.xml b/_Main/Sys/Integration/Brokers/PanelMaterialResponseResult1.xml
new file mode 100644
index 0000000..e849218
--- /dev/null
+++ b/_Main/Sys/Integration/Brokers/PanelMaterialResponseResult1.xml
Binary files differ
diff --git a/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult1.xml b/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult1.xml
new file mode 100644
index 0000000..3017e20
--- /dev/null
+++ b/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult1.xml
Binary files differ
diff --git a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_from.xml b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_from.xml
new file mode 100644
index 0000000..1e95e2a
--- /dev/null
+++ b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_from.xml
Binary files differ
diff --git a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_to.xml b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_to.xml
new file mode 100644
index 0000000..c9bba0e
--- /dev/null
+++ b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult1_to.xml
Binary files differ

--
Gitblit v1.9.3