1
0
Просмотр исходного кода

全量更新-打印出无匹配的数据

chenendian 4 дней назад
Родитель
Сommit
3774e0a707

+ 24 - 5
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/third/impl/DealExcelServiceImpl.java

@@ -264,13 +264,21 @@ public class DealExcelServiceImpl {
             }
             }
         }
         }
         log.info("业务号匹配完成:待匹配{}条,成功匹配{}条", list.size(), matched);
         log.info("业务号匹配完成:待匹配{}条,成功匹配{}条", list.size(), matched);
-        return list;
-    }
-
-
 
 
 
 
+//        //todo 这里可以进行删除
+//        for(Map<String,String> map : list){
+//            String ywh = map.get("ywh");
+//            String bdcdyh = map.get("bdcdyh");
+//            bdcdyh = bdcdyh.substring(0, SUB_BDCDYH_LENGTH);
+//            if(StringUtils.isBlank(ywh)){
+//                continue;
+//            }
+//            writeToLog("bdc_excel_house.txt", ywh+"||" + bdcdyh);
+//        }
 
 
+        return list;
+    }
 
 
 
 
 
 
@@ -296,6 +304,17 @@ public class DealExcelServiceImpl {
                 bdcExcelData.put("ywh", bizNo);
                 bdcExcelData.put("ywh", bizNo);
             }
             }
         }
         }
+
+//        //todo 这里可以进行删除
+//        for(Map<String,String> map : list){
+//            String ywh = map.get("ywh");
+//            String bdcdyh = map.get("bdcdyh");
+//            if(StringUtils.isBlank(ywh)){
+//                continue;
+//            }
+//            writeToLog("bdc_excel_land.txt", ywh+"||" + bdcdyh);
+//        }
+
         return list;
         return list;
     }
     }
 
 
@@ -1463,7 +1482,7 @@ public class DealExcelServiceImpl {
             // 时间戳 + msg
             // 时间戳 + msg
             String timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
             String timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
             //String logEntry = timestamp + " " + msg + System.lineSeparator();
             //String logEntry = timestamp + " " + msg + System.lineSeparator();
-            String logEntry = msg;
+            String logEntry = msg+System.lineSeparator();
             // 追加写入
             // 追加写入
             FileUtils.writeStringToFile(file, logEntry, StandardCharsets.UTF_8, true);
             FileUtils.writeStringToFile(file, logEntry, StandardCharsets.UTF_8, true);
             return "成功";
             return "成功";