我可以定义对 jdbc 入站通道适配器的动态查询吗?
<int-jdbc:inbound-channel-adapter max-rows-per-poll="1"
query ="#{'select * from work where status=0 and and test='' + test.testValue+ '' order by date_modified'}"
channel="test" data-source="testDS" update="update work set status=1 where id in (:id)"
>
<int:poller fixed-rate="100">
<int:transactional transaction-manager="testTM"/>
</int:poller>
</int-jdbc:inbound-channel-adapter>
这里我定义了一个测试 bean,它有一个方法 getTestValue()。这是行不通的。有什么建议么?