Commit de1d882f by zhanghj

V1.0.0--获取车辆信息增加车型为null判断

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18657 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 2e76a3fa
...@@ -1275,7 +1275,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1275,7 +1275,7 @@ public class OrderServiceImpl implements IOrderService {
carInfo.setSeries(series.getString("data")); carInfo.setSeries(series.getString("data"));
// 车辆信息信息 // 车辆信息信息
if (StringUtils.isNumber(carType)) { if (!StringUtils.isEmpty(carType) && StringUtils.isNumber(carType)) {
int typeId=Integer.parseInt(carType); int typeId=Integer.parseInt(carType);
JSONObject type = carBrandClient.getCarTypeById(typeId); JSONObject type = carBrandClient.getCarTypeById(typeId);
if (!com.glsx.common.utils.StringUtils.isEmpty(type.getString("data"))) { if (!com.glsx.common.utils.StringUtils.isEmpty(type.getString("data"))) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!