Jxing 6 năm trước cách đây
mục cha
commit
dc982b635d

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

@@ -163,7 +163,6 @@ public class Route extends ExceptionHandlerBaseRoute {
         //同步全部项目的资产信息
         from("direct:syncAllProject")
                 .process(exchange -> {
-                    System.out.println("someThing happened");
                     exchange.setProperty("projectList", ProPasCache.pjList);
                     log.warn("统计数据开始更新");
                 })
@@ -265,7 +264,6 @@ public class Route extends ExceptionHandlerBaseRoute {
                     inserJson.put("criterias", criterias);
                     //log.info("数据:" + inserJson.toString());
                     exchange.getIn().setBody(inserJson.toString());
-                    System.out.println(inserJson.toString());
                     exchange.getIn().setHeader(Exchange.HTTP_URI, InitEnvRoute.venders + "/auxiliary/project/create");
                     exchange.getIn().setHeader(Exchange.HTTP_METHOD, "POST");
                     exchange.setProperty("CamelCharsetName", "utf-8");

+ 0 - 3
src/main/java/com/sagacloud/route/processors/Insurance/GetPropertyCountInAllWarrantyProcessor.java

@@ -47,9 +47,6 @@ public class GetPropertyCountInAllWarrantyProcessor implements Processor {
 
         for(int i = propertyList.size() - 1; i > -1; --i){
             Map<String, Object> property = propertyList.get(i);
-            if(property.get("id").toString().contains("9da01128f85d11e8b9fc6f0dab7b6935")){
-                System.out.println("found!");
-            }
             Map<String, Object> infos = (Map<String, Object>) property.get("infos");
             if(infos.get(Const.INFO_INSURANCENUM) != null && allWarranty.containsKey(infos.get(Const.INFO_INSURANCENUM).toString().trim())){
                 Warranty w = allWarranty.get(infos.get(Const.INFO_INSURANCENUM).toString().trim());

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

@@ -26,7 +26,6 @@ public class GetPropertyUnderWarrantyProcessor implements Processor {
     public void process(Exchange exchange) throws Exception {
         String jsonStr = exchange.getIn().getBody(String.class);
         DPSelectPropertyResult dpResult = JSONObject.parseObject(jsonStr, DPSelectPropertyResult.class);
-        System.out.println(jsonStr);
         if(dpResult.getResult() == null && !dpResult.getResult().equals("success"))
             throw new InvalidPostException("数据平台返回异常!");
 

+ 0 - 1
src/main/java/com/sagacloud/route/processors/RecommendProcessor.java

@@ -286,7 +286,6 @@ public class RecommendProcessor {
         requestBody.put("criteria", criteria);
         criteria.put("type", typeArr);
         criteria.put(venderInfoCode, valueArr);
-        System.out.println(requestBody.toJSONString());
         String result = HttpRequests.sendPost(ExternalUrlUtil.getInQueryUrl(pjId), requestBody.toString());
         if(result.equals("")){
             throw new Exception("数据平台访问异常");

+ 0 - 1
src/main/java/com/sagacloud/route/processors/VenderMapProcessor.java

@@ -22,7 +22,6 @@ public class VenderMapProcessor implements Processor {
         //第二层为厂商id指向厂商id 或 型号id指向厂商id
         Map<String, Map<String, String>> nameMap = new HashMap<>();
         String jsonStr = exchange.getIn().getBody(String.class);
-        System.out.println(jsonStr);
         JSONObject json = JSONObject.parseObject(jsonStr);
         if (json.getString("result").equals("failure")) {
             throw new InvalidPostException("请求厂商库出错");

+ 5 - 5
src/main/java/com/sagacloud/utils/HttpRequests.java

@@ -43,11 +43,11 @@ public class HttpRequests {
             // 建立实际的连接
             connection.connect();
             // 获取所有响应头字段
-            Map<String, List<String>> map = connection.getHeaderFields();
-            // 遍历所有的响应头字段
-            for (String key : map.keySet()) {
-                System.out.println(key + "--->" + map.get(key));
-            }
+//            Map<String, List<String>> map = connection.getHeaderFields();
+//            // 遍历所有的响应头字段
+//            for (String key : map.keySet()) {
+//                System.out.println(key + "--->" + map.get(key));
+//            }
             // 定义 BufferedReader输入流来读取URL的响应
             in = new BufferedReader(new InputStreamReader(
                     connection.getInputStream()));

+ 2 - 2
src/main/java/com/sagacloud/utils/VendersUtil.java

@@ -50,7 +50,7 @@ public class VendersUtil {
         if(totalSize != null)
             ret.put("TotalCount", totalSize);
         ret.put("Content", arr);
-        return JSON.toJSONString(ret, SerializerFeature.WriteMapNullValue);
+        return JSON.toJSONString(ret, SerializerFeature.WriteMapNullValue, SerializerFeature.DisableCircularReferenceDetect);
     }
     public static JSONObject successJsonMsg(String msg, JSONArray arr){
         JSONObject jsonObj = new JSONObject();
@@ -131,7 +131,7 @@ public class VendersUtil {
         //System.out.println("差异步骤:"+dif[len1][len2]);
         //计算相似度
         double similarity =1 - (double) dif[len1][len2] / Math.max(str1.length(), str2.length());
-        System.out.println("字符串\""+str1+"\"与\""+str2+"\"的比较, 相似度:"+similarity);
+//        System.out.println("字符串\""+str1+"\"与\""+str2+"\"的比较, 相似度:"+similarity);
         return similarity;
     }
     private static int min(int... is) {