【发布时间】:2015-01-16 20:39:44
【问题描述】:
我有以下结构:
结构 A:
<itemlist>
<item>
<id>123</id>
<price>1</price>
<quantity>1</quantity>
</item>
<item>
<id>124</id>
<price>2</price>
<quantity>1</quantity>
</item>
<item>
<id>125</id>
<price>3</price>
<quantity>1</quantity>
</item>
<itemlist>
结构 B:
<totals>
<total>
<totalPrice>3</totalPrice>
</total>
</totals>
如果我想要所有相乘的字段的总和 通过将结构 A 中的字段放入结构 B 的 totalprice 字段中,这在 DataMapper 中是否可行。
如果可以,你会怎么做?
谢谢
【问题讨论】:
标签: dictionary mule esb