Commit ad9fae69 by levphon

bug修复或预防

1 parent b7ac3f4f
......@@ -346,12 +346,12 @@ public class VehicleController {
return R.error(1001, sn + "该设备已经绑定").data(false);
}
// 校验设备号是否已经绑定
boolean activeSn = deviceService.checkActiveSn(sn);
if (!activeSn) {
return R.error(1001, sn + "该设备已经激活").data(false);
}
//不管新e盾设备表的设备状态,绑定车即激活(只维护t_vehicle_device,created_date即激活时间)
// // 校验设备号是否已经绑定
// boolean activeSn = deviceService.checkActiveSn(sn);
// if (!activeSn) {
// return R.error(1001, sn + "该设备已经激活").data(false);
// }
return R.ok(sn + "设备验证通过").data(true);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!