diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java index 78e7b9fb..59c03c8d 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java @@ -187,7 +187,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi */ @Override public JSONArray vehiclesInTransit() throws HttpException, IOException { - OkHttp okHttp = new OkHttp(20); + OkHttp okHttp = new OkHttp(8); RequestParams requestParams = new RequestParams(); @@ -678,7 +678,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi */ @Override public List> trafficFlowAtTollStationEntrance(String startDate, String endDate, String stationType) throws HttpException, IOException { - OkHttp okHttp = new OkHttp(20); + OkHttp okHttp = new OkHttp(); RequestParams requestParams = new RequestParams(); @@ -750,7 +750,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi @Override public JSONArray trafficFlowAtTollStationEntranceHour(String startDate, String endDate, String stationType) throws HttpException, IOException { - OkHttp okHttp = new OkHttp(15); + OkHttp okHttp = new OkHttp(); RequestParams requestParams = new RequestParams(); @@ -800,7 +800,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi LocalDate oneYearAgo = currentDate.minusYears(UniversalEnum.ONE.getNumber()); String lastYear = oneYearAgo.format(formatter); - OkHttp okHttp = new OkHttp(20); + OkHttp okHttp = new OkHttp(); RequestParams requestParams = new RequestParams(); requestParams.put("sysid", sysid); //求情地址 startDate 时间 @@ -1147,7 +1147,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi } private Response getResponseTrafficFlowAtToll(String startDate, String stationType) throws HttpException, IOException { - OkHttp okHttp = new OkHttp(20); + OkHttp okHttp = new OkHttp(); RequestParams requestParams = new RequestParams();