modified pom

This commit is contained in:
2021-11-18 12:33:34 +01:00
parent e0aa057fc0
commit 7c3916a6ce
17 changed files with 681 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
package com.release11;
import generated.MaterialType;
import org.apache.camel.Exchange;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -26,13 +27,42 @@ public class DAO {
return xml;
}
public void getId(Exchange exchange) throws InterruptedException {
String tmp = exchange.getIn().getBody().toString();
System.out.println(tmp);
MaterialType tmp = (MaterialType) exchange.getIn().getBody();
System.out.println(tmp.getDescription()+tmp.getMaterialName());
Thread.sleep(10000);
exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1");
}
public void test2(Exchange exchange) throws InterruptedException {
HashMap map = (HashMap) exchange.getIn().getBody();
MaterialType materialType = new MaterialType();
materialType.setMaterialType(map.get(""));
System.out.println(tmp.getDescription()+tmp.getMaterialName());
Thread.sleep(10000);
exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1");
}
public void splitPackage(LinkedHashMap packageMap) {
Package pack = new Package();
pack.setId((Integer) packageMap.get("id"));