zyl 3 kuukautta sitten
vanhempi
commit
3c08d4b946
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/java/com/citygis/impl/TongJiServiceImpl.java

+ 2 - 2
src/main/java/com/citygis/impl/TongJiServiceImpl.java

@@ -55,7 +55,7 @@ public class TongJiServiceImpl implements TongJiService {
 
         List<Tab_log2> collect = new ArrayList<>();
         collect = tabLog2s.stream()
-                .filter(tabLog2 -> Integer.getInteger(tabLog2.getResponseTime()) >= 1000)
+                .filter(tabLog2 -> tabLog2.getResponseTime() != null && Integer.parseInt(tabLog2.getResponseTime()) >= 1000)
                 .collect(Collectors.toList());
 
         System.out.println("响应时间大于1s");
@@ -69,7 +69,7 @@ public class TongJiServiceImpl implements TongJiService {
 
         List<Tab_log2> collect = new ArrayList<>();
         collect = tabLog2s.stream()
-                .filter(tabLog2 -> Integer.getInteger(tabLog2.getResponseTime()) < 1000)
+                .filter(tabLog2 -> tabLog2.getResponseTime() != null && Integer.parseInt(tabLog2.getResponseTime())  < 1000)
                 .collect(Collectors.toList());
 
         System.out.println("响应时间小于1s");