|
|
@@ -148,18 +148,16 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
carModelReq.setEngineNo(carInfo.getEngineNo());
|
|
|
carModelReq.setEnrollDate(carInfo.getRegisterDate().replace("-", ""));
|
|
|
ModelsQueryXml m = buildModelsQueryParam(carModelReq, ycConfigureParameters);
|
|
|
- ModelsQueryResponse rd = null;
|
|
|
-
|
|
|
- boolean isUserModelName = false;
|
|
|
+ ModelsQueryResponse rd;
|
|
|
|
|
|
try {
|
|
|
rd = yongchengRequestApiComponents.newQueryVehicleTypes(m);
|
|
|
} catch (IOException e) {
|
|
|
- isUserModelName = true;
|
|
|
+ throw new SystemException("车型查询接口异常,请联系管理。");
|
|
|
}
|
|
|
|
|
|
// 使用ModelName 查询车型
|
|
|
- if (isUserModelName) {
|
|
|
+ if (CollUtil.isEmpty(rd.getVehicleInfoList())) {
|
|
|
try {
|
|
|
m.getRequestLabel().setSearchKeyword(carInfo.getModelcname());
|
|
|
rd = yongchengRequestApiComponents.newQueryVehicleTypes(m);
|