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
e18c06c3
Commit
e18c06c3
authored
Jun 22, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
f302218e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+6
-6
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/cache/ViolationCache.java
+1
-1
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
+1
-1
No files found.
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
e18c06c3
...
...
@@ -218,12 +218,12 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
/**
* 查询违章信息
*/
ViolationPlateNumAndTypeQueryReq
r
eq
=
new
ViolationPlateNumAndTypeQueryReq
();
r
eq
.
setPlateNum
(
bindInfo
.
getPlateNum
());
r
eq
.
setPlateType
(
bindInfo
.
getPlateType
());
r
eq
.
setTimeEnd
(
new
Date
());
r
eq
.
setTimeStart
(
DateUtil
.
offsetMonth
(
new
Date
(),-
12
));
List
<
ViolationRes
>
byPlateNumAndType
=
violationCache
.
getByPlateNumAndType
(
r
eq
);
ViolationPlateNumAndTypeQueryReq
queryR
eq
=
new
ViolationPlateNumAndTypeQueryReq
();
queryR
eq
.
setPlateNum
(
bindInfo
.
getPlateNum
());
queryR
eq
.
setPlateType
(
bindInfo
.
getPlateType
());
queryR
eq
.
setTimeEnd
(
new
Date
());
queryR
eq
.
setTimeStart
(
DateUtil
.
offsetMonth
(
new
Date
(),-
12
));
List
<
ViolationRes
>
byPlateNumAndType
=
violationCache
.
getByPlateNumAndType
(
queryR
eq
);
/**
* 构建违章信息返回列表
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/cache/ViolationCache.java
View file @
e18c06c3
...
...
@@ -25,7 +25,7 @@ public class ViolationCache {
* @param req 号牌+号牌类型,时间开始-结束
* @return
*/
@Cacheable
(
value
=
"violations"
,
key
=
"'plateNum:'+#req.plateNum+':plateType:'+req.plateType+':timeStart:'+#req"
+
@Cacheable
(
value
=
"violations"
,
key
=
"'plateNum:'+#req.plateNum+':plateType:'+
#
req.plateType+':timeStart:'+#req"
+
".timeStart.toString()+':timeEnd:'+#req.timeEnd.toString()"
,
unless
=
"#result==null or #result.size()==0"
)
public
List
<
ViolationRes
>
getByPlateNumAndType
(
ViolationPlateNumAndTypeQueryReq
req
)
{
return
violatio
.
getByPlateNumAndType
(
req
);
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
View file @
e18c06c3
...
...
@@ -14,7 +14,7 @@ import java.util.List;
* @author: xieshixiang
* @time:2020/6/19 15:26
**/
@FeignClient
(
name
=
"dcp-service-vehicle"
,
path
=
"
violation"
,
contextId
=
"dcp"
+
@FeignClient
(
url
=
"http://10.197.236.100:40204"
,
name
=
"dcp-service-vehicle"
,
path
=
"dcp/
violation"
,
contextId
=
"dcp"
+
"-service-vehicle-violation"
)
public
interface
ViolationFeign
{
/**
...
...
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