hongjli
2023-09-14 6307a9f1fb049bccf2d1fb677653c2dac68e1e40
拉料修复
已修改5个文件
已添加1个文件
90 ■■■■■ 文件已修改
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_PanelMaterialVehicle/StaticMethod_ReceiveDataGeneration.qbl 48 ●●●●● 补丁 | 查看 | 原始文档 | 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
@@ -6,8 +6,4 @@
  PosX: 330
  PosY: 450
  ReplyChannelOutputs: QuintiqEndpoint
  ConditionalMapping
  {
    MappingName: 'PanelMaterialResponseResult'
  }
}
_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
@@ -17,29 +17,13 @@
    restNameValue := bodyNameValue.Child( restHandle );
    restPayloadNameValue := restNameValue.Child( restPayloadHandle );
    
    releaseDateHandle := requestnvt.GetHandle( "releaseDate" );
    businessTypeHandle := requestnvt.GetHandle( "businessType" );
    scenarioNameHandle := requestnvt.GetHandle( "scenarioName" );
    releaseDateNameValue := restPayloadNameValue.Child( releaseDateHandle );
    businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle );
    scenarioNameNameValue := restPayloadNameValue.Child( scenarioNameHandle );
    
    info( "发布时间:", releaseDateNameValue.GetValueAsString(), "    äº‹ä¸šéƒ¨ï¼š", businessTypeNameValue.GetValueAsString(), "    ç‰ˆæœ¬å·ï¼š", scenarioNameNameValue.GetValueAsString() );
    panelMaterialsHandle := requestnvt.GetHandle( "panelMaterials" );
    panelMaterialsNameValue := restPayloadNameValue.Child( panelMaterialsHandle );
    childPanelMaterialsNameValue := panelMaterialsNameValue.Children();
    productIDHandle := requestnvt.GetHandle( "productID" );
    productDescriptionHandle := requestnvt.GetHandle( "productDescription" );
    startDateHandle := requestnvt.GetHandle( "startDate" );
    quantityHandle := requestnvt.GetHandle( "quantity" );
    traverse ( childPanelMaterialsNameValue, Elements, cpmnv ) {
      info( "产品:", cpmnv.Child( productIDHandle ).GetValueAsString() );
      info( "产品描述:", cpmnv.Child( productDescriptionHandle ).GetValueAsString() );
      info( "开始时间:", cpmnv.Child( startDateHandle ).GetValueAsString() );
      info( "数量:", cpmnv.Child( quantityHandle ).GetValueAsString() );
    if ( businessTypeNameValue.GetValueAsString() = "车载" ) {
      PanelMaterialVehicle::ReceiveDataGeneration( this, requestnvt );
    }
    
    info( "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" );
    
@@ -56,35 +40,35 @@
    categoryNamedValue := petNamedValue.AddChild( categoryHandle );
    categoryIDHandle := replynvt.GetHandle( "Id" );
    categoryIDNamedValue := categoryNamedValue.AddChild( categoryIDHandle );
    categoryIDNamedValue.SetValue( "TestID" );
    categoryIDNamedValue.SetValue( 3 );
    categoryNameHandle := replynvt.GetHandle( "Name" );
    categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle );
    categoryNameNamedValue.SetValue( "TestName" );
    categoryNameNamedValue.SetValue( "Cat" );
    petNameHandle := replynvt.GetHandle( "Name" );
    petNameValue := petNamedValue.AddChild( petNameHandle );
    petNameValue.SetValue( "Pet1" );
    petIdHandle := replynvt.GetHandle( "PetId" );
    petIdNameValue := petNamedValue.AddChild( petIdHandle );
    petIdNameValue.SetValue( "Pet1" );
    petIdNameValue.SetValue( 1 );
    
    photoUrlHandle := replynvt.GetHandle( "PhotoUrl" );
    photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle );
    urlHandle := replynvt.GetHandle( "Url" );
    photoUrlNameValue.AddChild( urlHandle, "地址1" );
    photoUrlNameValue.AddChild( urlHandle, "url1" );
    
    statusHandle := replynvt.GetHandle( "Status" );
    statusNameValue := petNamedValue.AddChild( statusHandle );
    statusNameValue.SetValue( "可用" );
    statusNameValue.SetValue( "available" );
    
    tagHandle := replynvt.GetHandle( "Tag" );
    tagNameValue := petNamedValue.AddChild( tagHandle );
    tagIdHandle := replynvt.GetHandle( "Id" );
    tagNameValue.AddChild( tagIdHandle, "aaa" );
    tagNameValue.AddChild( tagIdHandle, 123 );
    tagNameHandle := replynvt.GetHandle( "Name" );
    tagNameValue.AddChild( tagNameHandle, "vvvvvv" );
    tagNameValue.AddChild( tagNameHandle, "tag1" );
    
    
    info( rootNamedValue.ToString() );
    info( replynvt.ToString() );
    
    
    return emit( replynvt );
_Main/BL/Type_PanelMaterialVehicle/StaticMethod_ReceiveDataGeneration.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,48 @@
Quintiq file version 2.0
#parent: #root
StaticMethod ReceiveDataGeneration (
  GlobalOTDTable globalOTDTable,
  NamedValueTree requestnvt
)
{
  TextBody:
  [*
    nameValue := requestnvt.Root();
    bodyHandle := requestnvt.GetHandle( "Body" );
    restHandle := requestnvt.GetHandle( "Rest" );
    restPayloadHandle := requestnvt.GetHandle( "RestPayload" );
    bodyNameValue := nameValue.Child( bodyHandle );
    restNameValue := bodyNameValue.Child( restHandle );
    restPayloadNameValue := restNameValue.Child( restPayloadHandle );
    releaseDateHandle := requestnvt.GetHandle( "releaseDate" );
    businessTypeHandle := requestnvt.GetHandle( "businessType" );
    scenarioNameHandle := requestnvt.GetHandle( "scenarioName" );
    releaseDateNameValue := restPayloadNameValue.Child( releaseDateHandle );
    businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle );
    scenarioNameNameValue := restPayloadNameValue.Child( scenarioNameHandle );
    panelMaterialsHandle := requestnvt.GetHandle( "panelMaterials" );
    panelMaterialsNameValue := restPayloadNameValue.Child( panelMaterialsHandle );
    childPanelMaterialsNameValue := panelMaterialsNameValue.Children();
    productIDHandle := requestnvt.GetHandle( "productID" );
    productDescriptionHandle := requestnvt.GetHandle( "productDescription" );
    startDateHandle := requestnvt.GetHandle( "startDate" );
    quantityHandle := requestnvt.GetHandle( "quantity" );
    traverse ( childPanelMaterialsNameValue, Elements, cpmnv ) {
      info( "产品:", cpmnv.Child( productIDHandle ).GetValueAsString() );
      info( "产品描述:", cpmnv.Child( productDescriptionHandle ).GetValueAsString() );
      info( "开始时间:", cpmnv.Child( startDateHandle ).GetValueAsString() );
      info( "数量:", cpmnv.Child( quantityHandle ).GetValueAsString() );
    //  globalOTDTable.PanelMaterialVehicle( relnew,
    //                                       Customer := businessTypeNameValue.GetValueAsString(),
    //                                       ID := OS::GenerateGUIDAsString(),
    //                                       OrderDate := cpmnv.Child( startDateHandle ).GetValueAsString(),
    }
  *]
}
_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