Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
park
extend
Commits
16f4d496
Commit
16f4d496
authored
Jun 22, 2020
by
lixian7
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'test'
Dev See merge request
!3
parents
1bb7a11d
0ae1e2ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
+15
-1
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+0
-11
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
View file @
16f4d496
...
...
@@ -10,8 +10,9 @@ import org.springframework.web.bind.annotation.RestController;
/**
* 工具
*
@menu 工具类
*
* @author lixian
* @menu 工具类
* @description
* @date 2020/6/18 17:57
**/
...
...
@@ -24,6 +25,7 @@ public class ToolController {
/**
* 加密
*
* @param plain 明文
* @return
*/
...
...
@@ -33,7 +35,19 @@ public class ToolController {
}
/**
* 解密
*
* @param cipher 密文
* @return
*/
@GetMapping
(
value
=
"decrypt"
)
public
String
decrypt
(
String
cipher
)
{
return
EncryptStringAes
.
decryptAes
(
cipher
,
signKeyConfigBean
.
getKey
());
}
/**
* 获取时间戳
*
* @return
*/
@GetMapping
(
value
=
"timestamp"
)
...
...
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
16f4d496
...
...
@@ -36,7 +36,6 @@ import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ViolationInfo
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.YearCheckInfoRes
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -44,7 +43,6 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.UUID
;
/**
* 客户绑定服务实现类
...
...
@@ -53,7 +51,6 @@ import java.util.UUID;
* @time:2020/6/18 16:12
**/
@Service
@EnableScheduling
@Slf4j
public
class
BindServiceImpl
extends
ServiceImpl
<
BindInfoMapper
,
ParkBindInfo
>
implements
IBindService
{
...
...
@@ -309,14 +306,6 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
}
// @Scheduled(cron = "0 0/30 * * * ?")
// public void clearPast() {
// DateTime now = DateTime.now();
// log.info("开始清除,已过期且无效的绑定信息.当前时间:" + now);
// Date lastMonth = DateUtil.offsetDay(now, -30);
// Integer count = mapper.clearPast(lastMonth);
// log.info("清除完毕,共清除过期且无效的绑定信息:" + count);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment