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
cd0bb81d
Commit
cd0bb81d
authored
Jun 21, 2020
by
lixian7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整接口
parent
2a125726
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/H5Controller.java
+1
-1
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+9
-11
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/model/BindInfo.java
+2
-0
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/H5Controller.java
View file @
cd0bb81d
...
...
@@ -122,7 +122,7 @@ public class H5Controller {
* @return
*/
@PostMapping
(
"checkValidity"
)
public
Response
<
CheckValidityRes
>
checkValidity
(
@RequestBody
BindInfoQuery
query
)
{
public
Response
<
CheckValidityRes
>
checkValidity
(
@RequestBody
@Validated
BindInfoQuery
query
)
{
if
(
query
==
null
)
{
return
ResponseGenerator
.
fail
(
StatusCode
.
PARAM_ERROR
);
}
...
...
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
cd0bb81d
...
...
@@ -24,11 +24,7 @@ import com.hikcreate.edl.pub.web.mobile.infra.data.mapper.VerifyInfoMapper;
import
com.hikcreate.edl.pub.web.mobile.infra.model.BindInfo
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.BindInfoQuery
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.VerifyInfo
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.DrivingLicenseInfoRes
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.InsuranceInfoRes
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ResultList
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ViolationInfoRes
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.YearCheckInfoRes
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
...
...
@@ -107,12 +103,14 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
}
YearCheckInfoRes
yearCheckInfoRes
=
new
YearCheckInfoRes
();
yearCheckInfoRes
.
setPlateNum
(
bindInfo
.
getPlateNum
());
yearCheckInfoRes
.
setValidityTime
(
vehicleRes
.
getYxqz
());
Long
checkTime
=
DateUtil
.
parse
(
vehicleRes
.
getYxqz
(),
"yyyy-MM-dd HH:mm:ss"
).
getTime
();
if
(
checkTime
>=
System
.
currentTimeMillis
())
{
yearCheckInfoRes
.
setStatus
(
"未到期"
);
}
else
{
yearCheckInfoRes
.
setStatus
(
"已到期"
);
if
(
StrUtil
.
isNotBlank
(
vehicleRes
.
getYxqz
())
)
{
yearCheckInfoRes
.
setValidityTime
(
vehicleRes
.
getYxqz
().
substring
(
0
,
10
));
Long
checkTime
=
DateUtil
.
parse
(
vehicleRes
.
getYxqz
(),
"yyyy-MM-dd HH:mm:ss"
).
getTime
();
if
(
checkTime
>=
System
.
currentTimeMillis
()
)
{
yearCheckInfoRes
.
setStatus
(
"未到期"
);
}
else
{
yearCheckInfoRes
.
setStatus
(
"已到期"
);
}
}
return
ResponseGenerator
.
success
(
yearCheckInfoRes
);
}
...
...
infra/src/main/java/com/hikcreate/edl/pub/web/mobile/infra/model/BindInfo.java
View file @
cd0bb81d
package
com
.
hikcreate
.
edl
.
pub
.
web
.
mobile
.
infra
.
model
;
import
cn.hutool.core.date.DateTime
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
import
java.io.Serializable
;
...
...
@@ -18,6 +19,7 @@ public class BindInfo implements Serializable {
/**
* 绑定信息唯一标识,使用UUID
*/
@TableId
private
String
unqId
;
/**
* 客户id
...
...
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