Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-platform
Commits
77f7792f
Commit
77f7792f
authored
Dec 29, 2020
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增vcc查数据
parent
5b0ca2c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
QueryVccController.java
.../java/cn/qg/qaplatform/controller/QueryVccController.java
+21
-0
No files found.
src/main/java/cn/qg/qaplatform/controller/QueryVccController.java
View file @
77f7792f
package
cn
.
qg
.
qaplatform
.
controller
;
import
cn.qg.qaplatform.common.JsonResult
;
import
cn.qg.qaplatform.common.enums.VccStatusEnum
;
import
cn.qg.qaplatform.domain.QueryVccUser
;
import
cn.qg.qaplatform.service.VccDataService
;
import
cn.qg.qaplatform.utils.page.PageResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.Map
;
@CrossOrigin
@RestController
@RequestMapping
(
"/vcc"
)
...
...
@@ -29,4 +33,21 @@ public class QueryVccController {
QueryVccUser
queryVccUser
=
vccDataService
.
queryUserVccStatus
(
namespace
,
phoneNo
);
return
JsonResult
.
success
(
queryVccUser
);
}
@GetMapping
(
"/checkData"
)
public
JsonResult
checkUserData
(
String
namespace
,
String
phoneNo
,
String
idCardNo
)
{
QueryVccUser
queryVccUser
=
vccDataService
.
queryUserVccStatus
(
namespace
,
phoneNo
);
if
(
queryVccUser
==
null
)
{
return
JsonResult
.
serverFailed
(
"数据不存在!"
);
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"phoneNo"
,
queryVccUser
.
getPhoneNo
());
map
.
put
(
"userId"
,
queryVccUser
.
getUserId
());
map
.
put
(
"uuid"
,
queryVccUser
.
getUuid
());
map
.
put
(
"registeredFrom"
,
queryVccUser
.
getRegisteredFrom
());
map
.
put
(
"nextApplyTime"
,
queryVccUser
.
getNextApplyTime
());
map
.
put
(
"createdAt"
,
queryVccUser
.
getCreatedAt
());
map
.
put
(
"status"
,
VccStatusEnum
.
getDescByCode
(
queryVccUser
.
getStatus
()));
return
JsonResult
.
success
(
map
);
}
}
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