change code
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.release11;
|
||||
|
||||
import org.apache.camel.Exchange;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
@@ -25,10 +26,11 @@ public class DAO {
|
||||
return xml;
|
||||
}
|
||||
|
||||
public String getId(HashMap packageMap) throws InterruptedException {
|
||||
System.out.println(packageMap.get("id"));
|
||||
Thread.sleep(1000);
|
||||
return String.valueOf(packageMap.get("id"));
|
||||
public void getId(Exchange exchange) throws InterruptedException {
|
||||
|
||||
String tmp = exchange.getIn().getBody().toString();
|
||||
System.out.println(tmp);
|
||||
exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1");
|
||||
}
|
||||
|
||||
public void splitPackage(LinkedHashMap packageMap) {
|
||||
|
||||
Reference in New Issue
Block a user