Commit 97cbdcee by fz

1.主车钥匙关闭分享,分享钥匙全部关闭分享

1 parent c40b7f06
...@@ -591,7 +591,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService { ...@@ -591,7 +591,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
SmartVehicleBlueKeyExample example = smartVehicleBlueKeyService.getBlueKeyExampleByUserAndSn(Long.valueOf(request.getUserId()), request.getSn()); SmartVehicleBlueKeyExample example = smartVehicleBlueKeyService.getBlueKeyExampleByUserAndSn(Long.valueOf(request.getUserId()), request.getSn());
smartVehicleBlueKeyService.updateByExampleSelective(smartVehicleBlueKey, example); smartVehicleBlueKeyService.updateByExampleSelective(smartVehicleBlueKey, example);
if (shareStatus == 0) { if (shareStatus == 1) {
return R.ok(); return R.ok();
} }
...@@ -599,6 +599,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService { ...@@ -599,6 +599,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
SmartVehicleBlueShareKey shareKey = new SmartVehicleBlueShareKey(); SmartVehicleBlueShareKey shareKey = new SmartVehicleBlueShareKey();
shareKey.setShareStatus(0); shareKey.setShareStatus(0);
shareKey.setExpireTime(new Date()); shareKey.setExpireTime(new Date());
SmartVehicleBlueShareKeyExample shareKeyExample = smartVehicleBlueShareKeyService.getBlueKeyShareExampleByCarKeyID(smartVehicleBlueKey.getId()); SmartVehicleBlueShareKeyExample shareKeyExample = smartVehicleBlueShareKeyService.getBlueKeyShareExampleByCarKeyID(smartVehicleBlueKey.getId());
smartVehicleBlueShareKeyService.updateByExampleSelective(shareKey,shareKeyExample); smartVehicleBlueShareKeyService.updateByExampleSelective(shareKey,shareKeyExample);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!