让我们举例说,我有以下路线:
from(.....)
.choice()
.when(condition1)
.bean(Class1.class,"method1")
.when(condition2)
.bean(Class1.class,"method2")
.otherwise()
.bean(Class1.class,"method3")
.end();
Run Code Online (Sandbox Code Playgroud)
有没有办法我可以自动使用Class1来使用所有方法而不是在camel中使用.bean函数.如果你知道任何其他有效的方法.请告诉我.希望早日收到你的消息.
谢谢,Gautham
我有一个基于Sum Function的SQL编程问题.假设,我有下表.
ID Values
1 20
1 30
1 100
2 10
2 1
2 12
3 45
3 66
Run Code Online (Sandbox Code Playgroud)
如何计算与ID相关的值的总和并将其添加到新列.我也想按ID分组.例如:
ID Values Total_Value
1 20 150
1 30 150
1 100 150
2 10 23
2 1 23
2 12 23
3 45 111
3 66 111
Run Code Online (Sandbox Code Playgroud)
任何建议,将不胜感激.谢谢 !