Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0ea992c2
authored
Apr 28, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.注释过期时间校验逻辑
1 parent
ab89bc98
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/main/java/com/glsx/smart/service/impl/AiLockingKeyServiceImpl.java
src/main/java/com/glsx/smart/service/impl/AiLockingKeyShareServiceImpl.java
src/main/java/com/glsx/smart/service/impl/AiLockingKeyServiceImpl.java
View file @
0ea992c
...
@@ -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
){
...
...
src/main/java/com/glsx/smart/service/impl/AiLockingKeyShareServiceImpl.java
View file @
0ea992c
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment