Commit 10a5c76f by 杨林龙

增加车辆时 添加车架号是否已经存在的校验

1 parent c2396555
......@@ -389,6 +389,12 @@ public class VehicleController {
return R.error(StringUtils.join(bindSnList, ",") + "设备已经绑定,请重新输入");
}
// 校验车架号是否已经存在
boolean flag = vehicleService.checkVehicleByVin(vehicleInfoVo.getVin());
if (flag) {
return R.error(vehicleInfoVo.getVin() + "车架号已经存在,请重新输入");
}
vehicleService.addVehicleInfo(vehicleInfoVo);
return R.ok();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!