|
@@ -150,6 +150,8 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
log.info("supplier-vehicle.vehicleHistoryPositionQuery-IOException:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
ret.setCode(Constant.REQUEST_TIMEOUT);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.vehicleHistoryPositionQuery-Exception:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
@@ -186,6 +188,7 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
} catch (IOException e) {
|
|
|
log.info("supplier-vehicle.vehicleHistoryAPositionQuery-IOException:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
return Constants.REQUEST_TIMEOUT;
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.vehicleHistoryAPositionQuery-Exception:{}", e);
|
|
@@ -681,6 +684,7 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
log.info("supplier-vehicle.vehicleHistoryPositionQuery-IOException:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
ret.setCode(Constant.REQUEST_TIMEOUT);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.vehicleHistoryPositionQuery-Exception:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
@@ -738,17 +742,11 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
ret.setResultCode(Constant.UN_FIND_NUM_CODE);
|
|
|
ret.setResultBody(Constants.NO_RESULT);
|
|
|
ret.setResultDesc(Constants.NO_RESULT);
|
|
|
- } else if (resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140001)
|
|
|
- || resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140002)) {
|
|
|
- // 参数错误
|
|
|
- ret.setResultCode(Constant.INVALID_PARAMETER_CODE);
|
|
|
- ret.setResultBody(Constant.INVALID_PARAMETER);
|
|
|
- ret.setResultDesc(Constant.INVALID_PARAMETER);
|
|
|
} else {
|
|
|
// 其他错误
|
|
|
ret.setResultCode(Constant.OTHER_ERROR_CODE);
|
|
|
- ret.setResultBody(Constant.OTHER_ERROR);
|
|
|
- ret.setResultDesc(Constant.OTHER_ERROR);
|
|
|
+ ret.setResultBody(resultCode);
|
|
|
+ ret.setResultDesc(resultCode);
|
|
|
}
|
|
|
return upstreamCode;
|
|
|
}
|
|
@@ -803,6 +801,7 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
log.info("supplier-vehicle.checkPersonQualificationCertificate-IOException:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
ret.setCode(Constant.REQUEST_TIMEOUT);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.checkPersonQualificationCertificate-Exception:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
@@ -866,17 +865,11 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
ret.setResultCode(Constant.UN_FIND_NUM_CODE);
|
|
|
ret.setResultBody(Constants.NO_RESULT);
|
|
|
ret.setResultDesc(Constants.NO_RESULT);
|
|
|
- } else if (resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140001)
|
|
|
- || resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140002)) {
|
|
|
- // 参数错误
|
|
|
- ret.setResultCode(Constant.INVALID_PARAMETER_CODE);
|
|
|
- ret.setResultBody(Constant.INVALID_PARAMETER);
|
|
|
- ret.setResultDesc(Constant.INVALID_PARAMETER);
|
|
|
} else {
|
|
|
// 其他错误
|
|
|
ret.setResultCode(Constant.OTHER_ERROR_CODE);
|
|
|
- ret.setResultBody(Constant.OTHER_ERROR);
|
|
|
- ret.setResultDesc(Constant.OTHER_ERROR);
|
|
|
+ ret.setResultBody(resultCode);
|
|
|
+ ret.setResultDesc(resultCode);
|
|
|
}
|
|
|
return upstreamCode;
|
|
|
}
|
|
@@ -931,6 +924,7 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
log.info("supplier-vehicle.checkEnterpriseRoadTransport-IOException:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
ret.setCode(Constant.REQUEST_TIMEOUT);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.checkEnterpriseRoadTransport-Exception:{}", e);
|
|
|
ErrorUtils.captureException(e);
|
|
@@ -988,17 +982,11 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
ret.setResultCode(Constant.UN_FIND_NUM_CODE);
|
|
|
ret.setResultBody(Constants.NO_RESULT);
|
|
|
ret.setResultDesc(Constants.NO_RESULT);
|
|
|
- } else if (resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140001)
|
|
|
- || resultCode.equals(Constants.CERTIFICATE_CHECK_RESULT_CODE_140002)) {
|
|
|
- // 参数错误
|
|
|
- ret.setResultCode(Constant.INVALID_PARAMETER_CODE);
|
|
|
- ret.setResultBody(Constant.INVALID_PARAMETER);
|
|
|
- ret.setResultDesc(Constant.INVALID_PARAMETER);
|
|
|
} else {
|
|
|
// 其他错误
|
|
|
ret.setResultCode(Constant.OTHER_ERROR_CODE);
|
|
|
- ret.setResultBody(Constant.OTHER_ERROR);
|
|
|
- ret.setResultDesc(Constant.OTHER_ERROR);
|
|
|
+ ret.setResultBody(resultCode);
|
|
|
+ ret.setResultDesc(resultCode);
|
|
|
}
|
|
|
return upstreamCode;
|
|
|
}
|
|
@@ -1089,6 +1077,7 @@ public class VehicleServiceImpl implements VehicleService {
|
|
|
log.info("supplier-vehicle.checkVehicleExist-IOException:", e);
|
|
|
ErrorUtils.captureException(e);
|
|
|
ret.setCode(Constant.REQUEST_TIMEOUT);
|
|
|
+ upstreamCode = Constant.LOG_UPSTREAM_OUT_TIME_RESPONSE_CODE;
|
|
|
} catch (Exception e) {
|
|
|
log.info("supplier-vehicle.checkVehicleExist-Exception:", e);
|
|
|
ErrorUtils.captureException(e);
|