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
7a14cfad
Commit
7a14cfad
authored
Jun 19, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口定义
parent
efd9a41e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
14 deletions
+63
-14
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/BindInfoControlller.java
+32
-11
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/IBindService.java
+21
-2
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
+10
-1
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/BindInfoControlller.java
View file @
7a14cfad
...
@@ -10,7 +10,6 @@ import com.hikcreate.edl.pub.web.mobile.infra.model.BindInfo;
...
@@ -10,7 +10,6 @@ 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.BindInfoQuery
;
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.web.bind.annotation.GetMapping
;
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
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -70,7 +69,6 @@ public class BindInfoControlller extends BaseController {
...
@@ -70,7 +69,6 @@ public class BindInfoControlller extends BaseController {
return
mapper
.
updateById
(
info
)
>
0
?
Result
.
successResult
()
:
Result
.
errorResult
();
return
mapper
.
updateById
(
info
)
>
0
?
Result
.
successResult
()
:
Result
.
errorResult
();
}
}
/**
/**
* 绑定信息查询接口
* 绑定信息查询接口
*
*
...
@@ -100,12 +98,41 @@ public class BindInfoControlller extends BaseController {
...
@@ -100,12 +98,41 @@ public class BindInfoControlller extends BaseController {
if
(
query
==
null
)
{
if
(
query
==
null
)
{
return
Result
.
errorResult
(
ResultCode
.
PARAMETER_ERROR
,
"鉴权失败"
);
return
Result
.
errorResult
(
ResultCode
.
PARAMETER_ERROR
,
"鉴权失败"
);
}
}
PageResult
<
BindInfo
>
bindInfos
=
mapper
.
selectByQuery
(
query
);
return
service
.
yearCheckInfo
(
query
);
return
bindInfos
.
getAllCount
()
>
0
?
Result
.
successResult
(
bindInfos
)
:
}
Result
.
errorResult
(
ResultCode
.
HASH_NO_PRIVILEGE
);
/**
* 驾照信息查询接口
*
* @param query
* @return Result
* @author: xsx
* @date: 2020/6/19 16:28
*/
@PostMapping
(
"violationInfo"
)
public
Result
violationInfo
(
@RequestBody
BindInfoQuery
query
)
{
if
(
query
==
null
)
{
return
Result
.
errorResult
(
ResultCode
.
PARAMETER_ERROR
,
"鉴权失败"
);
}
return
service
.
violationInfo
(
query
);
}
}
@PostMapping
(
"insuranceInfo"
)
public
Result
insuranceInfo
(
@RequestBody
BindInfoQuery
query
){
if
(
query
==
null
)
{
return
Result
.
errorResult
(
ResultCode
.
PARAMETER_ERROR
,
"鉴权失败"
);
}
return
service
.
insuranceInfo
(
query
);
}
/**
* 驾照信息查询接口
*
* @param query
* @return Result
* @author: xsx
* @date: 2020/6/19 16:28
*/
@PostMapping
(
"drivingLicenseInfo"
)
@PostMapping
(
"drivingLicenseInfo"
)
public
Result
drivingLicenseInfo
(
@RequestBody
BindInfoQuery
query
)
{
public
Result
drivingLicenseInfo
(
@RequestBody
BindInfoQuery
query
)
{
if
(
query
==
null
)
{
if
(
query
==
null
)
{
...
@@ -115,10 +142,4 @@ public class BindInfoControlller extends BaseController {
...
@@ -115,10 +142,4 @@ public class BindInfoControlller extends BaseController {
}
}
}
}
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/IBindService.java
View file @
7a14cfad
...
@@ -23,10 +23,22 @@ public interface IBindService extends IService<BindInfo> {
...
@@ -23,10 +23,22 @@ public interface IBindService extends IService<BindInfo> {
*/
*/
Result
bind
(
BindInfo
info
);
Result
bind
(
BindInfo
info
);
/**
* 年检信息查询接口
*
* @param query
* @return
*/
Result
yearCheckInfo
(
BindInfoQuery
query
);
Result
yearCheckInfo
(
BindInfoQuery
query
);
/**
/**
* 保险信息查询接口
* @param query
* @return
*/
Result
insuranceInfo
(
BindInfoQuery
query
);
/**
* 违法信息查询接口
* 违法信息查询接口
*
*
* @param query
* @param query
...
@@ -36,7 +48,14 @@ public interface IBindService extends IService<BindInfo> {
...
@@ -36,7 +48,14 @@ public interface IBindService extends IService<BindInfo> {
*/
*/
Result
violationInfo
(
BindInfoQuery
query
);
Result
violationInfo
(
BindInfoQuery
query
);
/**
* 驾照信息查询接口
*
* @param query
* @return Result
* @author: xsx
* @date: 2020/6/19 16:29
*/
Result
drivingLicenseInfo
(
BindInfoQuery
query
);
Result
drivingLicenseInfo
(
BindInfoQuery
query
);
}
}
domain/src/main/java/com/hikcreate/edl/pub/web/mobile/domain/impl/BindServiceImpl.java
View file @
7a14cfad
...
@@ -79,7 +79,16 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
...
@@ -79,7 +79,16 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
if
(
bindInfo
==
null
||
"0"
.
equals
(
bindInfo
.
getStatus
())){
if
(
bindInfo
==
null
||
"0"
.
equals
(
bindInfo
.
getStatus
())){
return
Result
.
errorResult
(
ResultCode
.
DATA_ERROR
,
"车辆绑定信息不存在,或已过期!"
);
return
Result
.
errorResult
(
ResultCode
.
DATA_ERROR
,
"车辆绑定信息不存在,或已过期!"
);
}
}
return
Result
.
successResult
();
return
null
;
}
@Override
public
Result
insuranceInfo
(
BindInfoQuery
query
)
{
BindInfo
bindInfo
=
mapper
.
selectById
(
query
.
getUnqId
());
if
(
bindInfo
==
null
||
"0"
.
equals
(
bindInfo
.
getStatus
())){
return
Result
.
errorResult
(
ResultCode
.
DATA_ERROR
,
"车辆绑定信息不存在,或已过期!"
);
}
return
null
;
}
}
@Override
@Override
...
...
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