hongjli
2023-09-13 5cca3f17019ad86a7c09de1e3d4947d52dff9667
映射设置
已修改5个文件
41 ■■■■■ 文件已修改
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml 补丁 | 查看 | 原始文档 | blame | 历史
_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml 补丁 | 查看 | 原始文档 | blame | 历史
_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl
@@ -2,6 +2,7 @@
#parent: #root
ContentMapperProcessor ContentMapperReponse
{
  DefaultMappingName: 'PanelMaterialResponseResult'
  PosX: 330
  PosY: 450
  ReplyChannelOutputs: QuintiqEndpoint
_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 );
_Main/Sys/Integration/Mapping/PanelMaterialResponseResult.xml
Binary files differ
_Main/Sys/Integration/Structure/PanelMaterialResponseResult_from.xml
Binary files differ
_Main/Sys/Integration/Structure/PanelMaterialResponseResult_to.xml
Binary files differ