From 5cca3f17019ad86a7c09de1e3d4947d52dff9667 Mon Sep 17 00:00:00 2001 From: hongjli <3117313295@qq.com> Date: 星期三, 13 九月 2023 21:30:45 +0800 Subject: [PATCH] 映射设置 --- _Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl | 1 + _Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml | 0 _Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml | 0 _Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml | 0 _Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl | 40 +++++++++++++++++++++++++++++++++++++++- 5 files changed, 40 insertions(+), 1 deletions(-) diff --git "a/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl" "b/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl" index d777229..0943ed6 100644 --- "a/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl" +++ "b/_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse\0431.qbl" @@ -2,6 +2,7 @@ #parent: #root ContentMapperProcessor ContentMapperReponse { + DefaultMappingName: 'PanelMaterialResponseResult' PosX: 330 PosY: 450 ReplyChannelOutputs: QuintiqEndpoint diff --git a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl index 86d8291..db2a7b9 100644 --- a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl +++ b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl @@ -41,12 +41,50 @@ info( "鏁伴噺锛�", cpmnv.Child( quantityHandle ).GetValueAsString() ); } - // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + info( "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ); replynvt := LibInt_MessageAccessor::CreateEmptyMessage(); LibInt_MessageAccessor::SetHeaderProperty( replynvt, "Content-Type", "application/json" ); + rootNamedValue := replynvt.Root(); + bodyHandle := replynvt.GetHandle( "Body" ); + 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( "TestID" ); + categoryNameHandle := replynvt.GetHandle( "Name" ); + categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle ); + categoryNameNamedValue.SetValue( "TestName" ); + petNameHandle := replynvt.GetHandle( "Name" ); + petNameValue := petNamedValue.AddChild( petNameHandle ); + petNameValue.SetValue( "Pet1" ); + petIdHandle := replynvt.GetHandle( "PetId" ); + petIdNameValue := petNamedValue.AddChild( petIdHandle ); + petIdNameValue.SetValue( "Pet1" ); + + photoUrlHandle := replynvt.GetHandle( "PhotoUrl" ); + photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle ); + urlHandle := replynvt.GetHandle( "Url" ); + photoUrlNameValue.AddChild( urlHandle, "鍦板潃1" ); + + statusHandle := replynvt.GetHandle( "Status" ); + statusNameValue := petNamedValue.AddChild( statusHandle ); + statusNameValue.SetValue( "鍙敤" ); + + tagHandle := replynvt.GetHandle( "Tag" ); + tagNameValue := petNamedValue.AddChild( tagHandle ); + tagIdHandle := replynvt.GetHandle( "Id" ); + tagNameValue.AddChild( tagIdHandle, "aaa" ); + tagNameHandle := replynvt.GetHandle( "Name" ); + tagNameValue.AddChild( tagNameHandle, "vvvvvv" ); + + + info( rootNamedValue.ToString() ); return emit( replynvt ); diff --git a/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml b/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml index 9663346..853ffcf 100644 --- a/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml +++ b/_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml Binary files differ diff --git a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml index 653b142..e776879 100644 --- a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml +++ b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml Binary files differ diff --git a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml index 653b142..d360783 100644 --- a/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml +++ b/_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml Binary files differ -- Gitblit v1.9.3