Commit 55e0c565 by zhengxj

finish 处理车型非法数据类型 on 20200310 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26083 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ba4438b9
...@@ -291,8 +291,7 @@ public class OrderUtil { ...@@ -291,8 +291,7 @@ public class OrderUtil {
order.setCarType(null); order.setCarType(null);
} }
// 车辆信息信息 // 车辆信息信息
if (order.getCarType() != null) { if (!StringUtils.isEmpty(order.getCarType())) {
Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$"); Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
String carType = order.getCarType(); String carType = order.getCarType();
if (pattern.matcher(carType).matches()) { if (pattern.matcher(carType).matches()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!