【发布时间】:2019-05-10 04:48:26
【问题描述】:
你好,我遇到了这个问题,我有一个查询可以设置 $ {body} 的值
<to uri="sql:SELECT distinct substr(cust_account,4,3) as TypeCompte from bnaservice.customer_accounts where cust_account like '#${body[0]}%' order by cust_account?dataSource=moodleDB"/>
<to uri="bean:tn.ngtrend.CompteClientRest.Transformer?method=ToXml(Exchange)"/>
$ {body} 的值等于 001,但每次我执行查询时它都会给我一个结果 null
我认为 ${body} 和% 之间的串联是错误的
有谁可以帮我解决这个问题,谢谢
【问题讨论】:
-
如果删除#会发生什么?
-
同样的问题,结果为null
标签: java sql apache-camel esb blueprint-osgi