|
@@ -4,6 +4,8 @@ import com.github.rjeschke.txtmark.Processor;
|
|
|
import com.sagacloud.Exceptions.InvalidPostException;
|
|
|
import com.sagacloud.route.processors.GetInsuranceNoListProcessor;
|
|
|
import com.sagacloud.route.processors.handleWarrantyFromVenderProcessor;
|
|
|
+import com.sagacloud.route.processors.GetPropByPjProcessor;
|
|
|
+import com.sagacloud.utils.Const;
|
|
|
import com.sagacloud.utils.VendersUtil;
|
|
|
import org.apache.camel.Exchange;
|
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
@@ -47,7 +49,7 @@ public class Route extends RouteBuilder {
|
|
|
.route()
|
|
|
.process(new GetInsuranceNoListProcessor())
|
|
|
.to(String.join("", InitEnvRoute.venders, "/insurance/contract/query"))
|
|
|
- .process(new handleWarrantyFromVenderProcessor())
|
|
|
+ .process(new GetInsuranceNoListProcessor())
|
|
|
.to(String.join("", InitEnvRoute.dataPlatform, "/property/relation_query"))
|
|
|
.process(new GetInsuranceNoListProcessor());
|
|
|
// 获取所有保单列表
|
|
@@ -69,7 +71,18 @@ public class Route extends RouteBuilder {
|
|
|
.route()
|
|
|
.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");
|
|
|
|
|
|
}
|
|
|
|