Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baihang-report
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
data-spider
baihang-report
Commits
27237ff8
Commit
27237ff8
authored
Jun 16, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百行个人征信报告Q1查询
parent
9869e442
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
583 deletions
+138
-583
User.java
src/main/java/cn/quantgroup/report/User.java
+0
-20
CommonSourceController.java
...up/report/controller/external/CommonSourceController.java
+37
-12
BaiHangQueryService.java
...uantgroup/report/service/baihang/BaiHangQueryService.java
+74
-169
CommonQueryService.java
.../quantgroup/report/service/common/CommonQueryService.java
+27
-382
No files found.
src/main/java/cn/quantgroup/report/User.java
deleted
100644 → 0
View file @
9869e442
package
cn
.
quantgroup
.
report
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @Author fengjunkai
*/
@Data
public
class
User
{
private
Long
id
;
private
String
phoneNo
;
private
String
uuid
;
private
Date
createdAt
;
}
src/main/java/cn/quantgroup/report/controller/external/CommonSourceController.java
View file @
27237ff8
package
cn
.
quantgroup
.
report
.
controller
.
external
;
package
cn
.
quantgroup
.
report
.
controller
.
external
;
import
cn.quantgroup.report.User
;
import
cn.quantgroup.report.service.baihang.BaiHangQueryService
;
import
cn.quantgroup.report.response.GlobalResponse
;
import
cn.quantgroup.report.service.common.CommonQueryService
;
import
cn.quantgroup.report.service.common.CommonQueryService
;
import
cn.quantgroup.report.utils.IdUtils
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.collect.ImmutableMap
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.
Date
;
import
java.util.
Map
;
/**
/**
* Created by fengjunkai on 2018/8/13 0013 下午 4:48
* Created by fengjunkai on 2018/8/13 0013 下午 4:48
...
@@ -22,6 +25,8 @@ public class CommonSourceController {
...
@@ -22,6 +25,8 @@ public class CommonSourceController {
@Autowired
@Autowired
private
CommonQueryService
queryService
;
private
CommonQueryService
queryService
;
@Autowired
private
BaiHangQueryService
baiHangQueryService
;
@RequestMapping
(
"/query"
)
@RequestMapping
(
"/query"
)
public
Object
commonQuery
(
String
source_types
,
String
uuid
,
String
name
,
String
phone
,
String
identity
,
String
backDate
,
String
business_type
,
String
order_id
,
boolean
isReadCache
){
public
Object
commonQuery
(
String
source_types
,
String
uuid
,
String
name
,
String
phone
,
String
identity
,
String
backDate
,
String
business_type
,
String
order_id
,
boolean
isReadCache
){
...
@@ -29,17 +34,37 @@ public class CommonSourceController {
...
@@ -29,17 +34,37 @@ public class CommonSourceController {
return
object
;
return
object
;
}
}
@RequestMapping
(
"/reload"
)
public
Object
reloadConfig
(
String
keys
){
/**
log
.
info
(
"begin reload mapping, key:{}"
,
keys
);
* -----------------------------------------------------------------------------<br>
if
(
"aaac1505-e29a-481b-91c6-d5d832b262e4"
.
equalsIgnoreCase
(
keys
)){
* 描 述: 百行个人征信报告查询 <br>
queryService
.
queryServiceMap
();
* 创建人: yanhui.Hao <br>
log
.
info
(
"end reload mapping, key:{}"
,
keys
);
* 创建时间: 2020.05.13 16:53 <br>
return
GlobalResponse
.
generate
(
"操作成功"
);
* 最后修改人: <br>
* 最后修改时间: 2020.05.13 16:53 <br>
* 入参说明: [transactionId, uuid, identity, phone, name, queryReason, loanId] <br>
* 出参说明: java.lang.String <br>
* -----------------------------------------------------------------------------
*/
@RequestMapping
(
"/zxlmbh/persionCreditReport"
)
public
String
persionCreditReport
(
String
key
,
String
transactionId
,
String
uuid
,
String
identity
,
String
phone
,
String
name
,
String
queryReason
,
String
loanId
)
{
Map
<
String
,
Object
>
resultMap
=
null
;
if
(
StringUtils
.
isEmpty
(
key
)
||
!
"b5140fb2-2c85-4b5a-abcf-3e97528014db"
.
equals
(
key
)){
resultMap
=
ImmutableMap
.
of
(
"code"
,
"301"
,
"msg"
,
"权限参数不能为空!"
);
}
if
(
StringUtils
.
isAnyBlank
(
identity
,
name
,
queryReason
))
{
resultMap
=
ImmutableMap
.
of
(
"code"
,
"301"
,
"msg"
,
"业务参数不能为空!"
);
}
else
{
if
(
StringUtils
.
isEmpty
(
transactionId
))
{
transactionId
=
IdUtils
.
getUuid
();
}
}
log
.
info
(
"operator fail, key:{}"
,
keys
);
resultMap
=
baiHangQueryService
.
queryBaiHangQ1OfZxlm
(
transactionId
,
uuid
,
identity
,
phone
,
name
,
queryReason
,
loanId
);
return
GlobalResponse
.
generate
(
"参数不正确"
);
}
}
return
JSON
.
toJSONString
(
resultMap
);
}
}
}
src/main/java/cn/quantgroup/report/service/baihang/BaiHangQueryService.java
View file @
27237ff8
This diff is collapsed.
Click to expand it.
src/main/java/cn/quantgroup/report/service/common/CommonQueryService.java
View file @
27237ff8
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