Commit 5543d835 by 杨林龙

新增车辆时 进行车型转换

1 parent 0bc4c619
......@@ -325,15 +325,15 @@ public class VehicleController {
// 校验设备号是否存在
boolean snExist = deviceService.checkSnLocalAndRemote(sn);
if (!snExist) {
return R.error(1001, sn + "该设备不存在");
return R.error(1001, sn + "该设备不存在").data(false);
}
// 校验设备号是否已经绑定
boolean bindSn = deviceService.checkBindSn(sn);
if (!bindSn) {
return R.error(1001, sn + "该设备已经绑定");
return R.error(1001, sn + "该设备已经绑定").data(false);
}
return R.ok(sn + "设备验证通过");
return R.ok(sn + "设备验证通过").data(true);
}
@ApiOperation(value = "新增车辆信息")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!