Browse Source

处理收费站接口超时

develop
王兴琳 5 months ago
parent
commit
95d91102fc
  1. 10
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java

10
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<Map<String, String>> 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();

Loading…
Cancel
Save