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
dddfe986
Commit
dddfe986
authored
4 years ago
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
违章信息调用修改
parent
428156dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/H5Controller.java
+8
-0
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+2
-2
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/H5Controller.java
View file @
dddfe986
...
@@ -25,6 +25,7 @@ import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ViolationInfo
...
@@ -25,6 +25,7 @@ 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
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.YearCheckInfoRes
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -56,6 +57,13 @@ public class H5Controller {
...
@@ -56,6 +57,13 @@ public class H5Controller {
DefaultConverter
defaultConverter
;
DefaultConverter
defaultConverter
;
/**
/**
* 验证有效性限制时间
* 单位:小时
*/
@Value
(
"${biz.check.validity.limit.time:24}"
)
Integer
checkValidityLimitTime
;
/**
* 年检信息查询接口
* 年检信息查询接口
*
*
* @param query
* @param query
...
...
This diff is collapsed.
Click to expand it.
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
dddfe986
...
@@ -92,8 +92,8 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
...
@@ -92,8 +92,8 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
//规则:一个电话号码只能被一个客户绑定
//规则:一个电话号码只能被一个客户绑定
QueryWrapper
<
ParkBindInfo
>
phone
=
new
QueryWrapper
();
QueryWrapper
<
ParkBindInfo
>
phone
=
new
QueryWrapper
();
boundQuery
.
eq
(
"phone"
,
info
.
getPhone
());
phone
.
eq
(
"phone"
,
info
.
getPhone
());
boundQuery
.
eq
(
"status"
,
"1"
);
phone
.
eq
(
"status"
,
"1"
);
List
<
ParkBindInfo
>
phones
=
mapper
.
selectList
(
phone
);
List
<
ParkBindInfo
>
phones
=
mapper
.
selectList
(
phone
);
if
(
phones
!=
null
&&
!
phones
.
isEmpty
())
{
if
(
phones
!=
null
&&
!
phones
.
isEmpty
())
{
boolean
phoneExist
=
phones
.
get
(
0
).
getUserId
().
equals
(
info
.
getUserId
());
boolean
phoneExist
=
phones
.
get
(
0
).
getUserId
().
equals
(
info
.
getUserId
());
...
...
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