|
@@ -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");
|