|
@@ -2,6 +2,8 @@ package com.sagacloud.route;
|
|
|
|
|
|
import com.github.rjeschke.txtmark.Processor;
|
|
import com.github.rjeschke.txtmark.Processor;
|
|
import com.sagacloud.route.processors.GetInsuranceNoListProcessor;
|
|
import com.sagacloud.route.processors.GetInsuranceNoListProcessor;
|
|
|
|
+import com.sagacloud.route.processors.GetPropByPjProcessor;
|
|
|
|
+import com.sagacloud.utils.Const;
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
import org.apache.commons.io.IOUtils;
|
|
import org.apache.commons.io.IOUtils;
|
|
|
|
|
|
@@ -65,7 +67,17 @@ public class Route extends RouteBuilder {
|
|
.route()
|
|
.route()
|
|
.process();
|
|
.process();
|
|
|
|
|
|
-// from("direct:getPropertiesByPj")
|
|
|
|
-
|
|
|
|
|
|
+ //body位JSONObject,含有projectId字段
|
|
|
|
+ from("direct:getPropertiesByPj")
|
|
|
|
+ .process(new GetPropByPjProcessor())
|
|
|
|
+ .to(Const.dataPlatform+"/property/relation_query")
|
|
|
|
+ .process(exchange -> {
|
|
|
|
+ System.out.println(exchange.getIn().getBody(String.class));
|
|
|
|
+ });
|
|
|
|
+ rest("/test").post()
|
|
|
|
+ .consumes(MediaType.APPLICATION_JSON)
|
|
|
|
+ .produces(MediaType.APPLICATION_JSON)
|
|
|
|
+ .route()
|
|
|
|
+ .to("direct:getPropertiesByPj");
|
|
}
|
|
}
|
|
}
|
|
}
|