Browse Source

定时任务

Jxing 6 years ago
parent
commit
e85ef9af69

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

@@ -125,7 +125,8 @@ public class Route extends ExceptionHandlerBaseRoute {
         // 需要输入  body是Pj1101080001, getProperty("propertyData") 是 DPSelectPropertyResult类型,
         // getProperty("idMap") 是 Map<String, String>类型,  说明: 所有DPID  --> venderId
         // getProperty("nameMap") 是 Map<String, Map<String, String>>类型  说明: 信息点Name --> (厂商库该信息点的值  --> 所属厂商)
-        from("direct:getProperty").process(new StatisticsProcessor());
+        from("direct:getProperty").process(new StatisticsProcessor())
+                .to(String.join("", InitEnvRoute.venders, "/auxiliary/property/create_by_project"));
 
         //body为JSONObject,含有projectId字段
         from("direct:getPropertiesByPj")

+ 4 - 1
src/main/java/com/sagacloud/utils/Const.java

@@ -17,8 +17,11 @@ public class Const {
     public static final String SUPP_CONTRACT = "SupplierContractID";//供应合同编号
     public static final String INSUR_ID = "DPInsurerID";//自定义保险公司ID
     public static final String INSUR_NAME = "Insurer";//保险公司名称
-    public static final String INSUR_CONTRACT = "InsuranceNum";//保险单号
     public static final String MTN_ID = "DPMaintainerID";//自定义维修商ID
     public static final String MTN_NAME = "Maintainer";//维修商名称
     public static final String MTN_DEADLINE = "MaintainDeadline";//维修商合同截止日期
+    public static final String INFO_SUPPLIERCONTRACTID = "SupplierContractID";//供应商合同编号
+    public static final String INFO_INSURANCENUM = "InsuranceNum";//保险商保单号
+
+
 }