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
7c978fee
Commit
7c978fee
authored
4 years ago
by
lixian7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
驾照有效日期调整
parent
fc100bcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+4
-1
No files found.
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
7c978fee
...
...
@@ -330,6 +330,9 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
if
(
bindInfo
==
null
||
"0"
.
equals
(
bindInfo
.
getStatus
()))
{
return
ResultGenerator
.
fail
(
ResultCode
.
BIND_INFO_UNKNOWN
);
}
if
(
!
bindInfo
.
getUserId
().
equals
(
query
.
getUserId
())
||
!
bindInfo
.
getPhone
().
equals
(
query
.
getPhone
())
)
{
return
ResultGenerator
.
fail
(
StatusCode
.
PARAM_ERROR
.
getCode
(),
"客户唯一编码或手机号不正确"
);
}
/**
* 校验当前电话号码是否在1天内已通过验证
...
...
@@ -369,7 +372,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
result
.
setPlateNum
(
byPlateNumAndType
.
getHphm
());
String
validityTime
=
drivingLicenseRes
.
getYxqz
();
if
(
StrUtil
.
isNotBlank
(
validityTime
)
&&
!
"null"
.
equalsIgnoreCase
(
validityTime
)
)
{
validityTime
.
substring
(
0
,
10
);
validityTime
=
validityTime
.
substring
(
0
,
10
);
}
result
.
setValidityTime
(
validityTime
);
String
status
=
DateUtil
.
compare
(
DateUtil
.
parseDate
(
drivingLicenseRes
.
getYxqz
()),
new
Date
())
>=
0
?
"有效"
:
...
...
This diff is collapsed.
Click to expand it.
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