Sfoglia il codice sorgente

新增根据项目id获取

Jxing 6 anni fa
parent
commit
a9c15d5310

+ 1 - 3
src/main/java/com/sagacloud/route/Route.java

@@ -42,9 +42,7 @@ public class Route extends ExceptionHandlerBaseRoute {
     public void configure() throws Exception {
         configExceptionHandler();
 
-        fromF("timer://simpleTimer?period=1m")
-                .process(new OnTimeTaskProcessor())
-                .to("direct:syncAllProject");
+        fromF("timer://simpleTimer?period=1m").process(new OnTimeTaskProcessor()).to("direct:syncAllProject");
         fromF("timer://simpleTimer?period=30m").to("direct:synProjectName");
 
         rest().get("/doc")

+ 1 - 1
src/main/java/com/sagacloud/route/processors/Insurance/GetPropertyUnderWarrantyProcessor.java

@@ -53,7 +53,7 @@ public class GetPropertyUnderWarrantyProcessor implements Processor {
         for(int i = propertyList.size() - 1; i > -1; --i){
             Map<String, Object> property = propertyList.get(i);
             Map<String, Object> infos = (Map<String, Object>) property.get("infos");
-            if(infos.get(Const.INSUR_ID) == null || !validWarranty.contains(infos.get(Const.INSUR_ID).toString().trim())){
+            if(infos.get(Const.INFO_INSURANCENUM) == null || !validWarranty.contains(infos.get(Const.INFO_INSURANCENUM).toString().trim())){
                 propertyList.remove(i);
             }
         }