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
edd4abfb
Commit
edd4abfb
authored
Jun 21, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
dfcb0319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+4
-3
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
+1
-2
No files found.
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
edd4abfb
...
...
@@ -48,7 +48,7 @@ import java.util.Objects;
import
java.util.UUID
;
/**
*
description:
客户绑定服务实现类
* 客户绑定服务实现类
*
* @author: xieshixiang
* @time:2020/6/18 16:12
...
...
@@ -288,7 +288,8 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
result
.
setDriverName
(
drivingLicenseRes
.
getXm
());
result
.
setPlateNum
(
drivingLicenseRes
.
getSfzmhm
());
result
.
setValidityTime
(
drivingLicenseRes
.
getYxqz
());
String
status
=
DateUtil
.
compare
(
DateUtil
.
parseDate
(
drivingLicenseRes
.
getYxqz
()),
new
Date
())
>=
0
?
"有效"
:
"已过期"
;
String
status
=
DateUtil
.
compare
(
DateUtil
.
parseDate
(
drivingLicenseRes
.
getYxqz
()),
new
Date
())
>=
0
?
"有效"
:
"已过期"
;
result
.
setStatus
(
status
);
result
.
setSurplusGrade
(
String
.
valueOf
(
12
-
Integer
.
parseInt
(
drivingLicenseRes
.
getLjjf
())));
...
...
@@ -296,7 +297,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
}
@Scheduled
(
cron
=
"0 0/30 * * * ?
"
)
@Scheduled
(
cron
=
"0 0/30 * * * ?"
)
public
void
clearPast
()
{
DateTime
now
=
DateTime
.
now
();
log
.
info
(
"开始清除,已过期且无效的绑定信息.当前时间:"
+
now
);
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/data/feign/dcp_service_vehicle/ViolationFeign.java
View file @
edd4abfb
package
com
.
hikcreate
.
edl
.
pub
.
web
.
mobile
.
infra
.
data
.
feign
.
dcp_service_vehicle
;
import
com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.request.ViolationIdCardQueryReq
;
import
com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.request.ViolationPlateNumAndTypeQueryReq
;
import
com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.response.ViolationRes
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -15,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
(
name
=
"dcp-service-vehicle"
,
path
=
"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