Commit 0ea992c2 by fz

1.注释过期时间校验逻辑

1 parent ab89bc98
...@@ -679,7 +679,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService { ...@@ -679,7 +679,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
} }
//校验过期时间 //校验过期时间
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); /*SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String nowTime = sdf.format(new Date()); String nowTime = sdf.format(new Date());
Date nowDate = null; Date nowDate = null;
...@@ -708,7 +708,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService { ...@@ -708,7 +708,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
//如果当前时间已经超过过期时间,更新数据 //如果当前时间已经超过过期时间,更新数据
if (CollectionUtils.isNotEmpty(expireList)) { if (CollectionUtils.isNotEmpty(expireList)) {
smartVehicleBlueShareKeyService.updateShareStatusByIds(expireList); smartVehicleBlueShareKeyService.updateShareStatusByIds(expireList);
} }*/
//重新根据分享状态排序 //重新根据分享状态排序
if(shareKeyList.size()>1){ if(shareKeyList.size()>1){
......
...@@ -209,7 +209,7 @@ public class AiLockingKeyShareServiceImpl implements AiLockingKeyShareService { ...@@ -209,7 +209,7 @@ public class AiLockingKeyShareServiceImpl implements AiLockingKeyShareService {
} }
//校验过期时间 //校验过期时间
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); /* SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String nowTime = sdf.format(new Date()); String nowTime = sdf.format(new Date());
Date nowDate = null; Date nowDate = null;
...@@ -239,9 +239,9 @@ public class AiLockingKeyShareServiceImpl implements AiLockingKeyShareService { ...@@ -239,9 +239,9 @@ public class AiLockingKeyShareServiceImpl implements AiLockingKeyShareService {
//如果当前时间已经超过过期时间,更新数据 //如果当前时间已经超过过期时间,更新数据
if (CollectionUtils.isNotEmpty(expireList)) { if (CollectionUtils.isNotEmpty(expireList)) {
shareKeyService.updateShareStatusByIds(expireList); shareKeyService.updateShareStatusByIds(expireList);
} }*/
return R.ok().data(responseList); return R.ok().data(keys);
} }
private SmartVehicleBlueShareKey checkToeknValid(String token) { private SmartVehicleBlueShareKey checkToeknValid(String token) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!