Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
068cee67
Commit
068cee67
authored
Mar 23, 2020
by
杨钧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'login' of
http://git.quantgroup.cn/QG/customer-service
into login
parents
3a8ef742
3bd0f837
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
UserServiceImpl.java
.../cn/quantgroup/customer/service/impl/UserServiceImpl.java
+22
-3
No files found.
src/main/java/cn/quantgroup/customer/service/impl/UserServiceImpl.java
View file @
068cee67
...
...
@@ -496,9 +496,7 @@ public class UserServiceImpl implements IUserService {
log
.
info
(
"{} 订单参数查询用户信息 orderQueryParam={}"
,
logPre
,
orderQueryParam
);
//渠道订单号需要有渠道号
boolean
channelParam
=
StringUtils
.
isNotBlank
(
orderQueryParam
.
getChannelOrderNo
())
&&
Objects
.
nonNull
(
orderQueryParam
.
getChannelId
());
if
(
Objects
.
nonNull
(
orderQueryParam
.
getLoanId
())
||
channelParam
||
StringUtils
.
isNotBlank
(
orderQueryParam
.
getApplyOrderNo
()))
{
if
(
channelParam
){
//通过ka获得userId然后通过userId查询
JsonResult
<
LoanOrderMapping
>
orderMapping
=
kaService
.
findOrderMapping
(
orderQueryParam
);
if
(!
orderMapping
.
isSuccess
())
{
...
...
@@ -512,6 +510,27 @@ public class UserServiceImpl implements IUserService {
UserSysResult
<
XUserDetail
>
userDetailByUserId
=
userSdk
.
getService
().
findUserDetailByUserId
(
qgUserId
);
return
getUserBasicInfoResult
(
userDetailByUserId
);
}
if
(
Objects
.
nonNull
(
orderQueryParam
.
getLoanId
())
||
StringUtils
.
isNotBlank
(
orderQueryParam
.
getApplyOrderNo
()))
{
Long
loanId
=
orderQueryParam
.
getLoanId
();
String
applyOrderNo
=
orderQueryParam
.
getApplyOrderNo
();
ApplyOrderQuery
applyOrderQuery
=
new
ApplyOrderQuery
();
applyOrderQuery
.
setOrderNo
(
applyOrderNo
);
applyOrderQuery
.
setLoanId
(
loanId
);
//申请订单查询
JsonResult
<
List
<
ApplyOrder
>>
applyOrders
=
xyqbService
.
findApplyOrders
(
applyOrderQuery
);
if
(!
applyOrders
.
isSuccess
()){
log
.
error
(
"{} 获得申请订单失败 applyOrderQuery={} result={}"
,
logPre
,
applyOrderQuery
,
applyOrders
);
return
JsonResult
.
buildErrorStateResult
(
"查询失败"
,
null
);
}
if
(
CollectionUtils
.
isEmpty
(
applyOrders
.
getData
())){
return
JsonResult
.
buildErrorStateResult
(
"无数据,请用其他参数查询"
,
null
);
}
Long
userId
=
applyOrders
.
getData
().
get
(
0
).
getUserId
();
UserSysResult
<
XUserDetail
>
userDetailByUserId
=
userSdk
.
getService
().
findUserDetailByUserId
(
userId
);
return
getUserBasicInfoResult
(
userDetailByUserId
);
}
//走到这里申请订单号和借款订单号都为空, 渠道订单号和渠道号至少一个为空
if
(
StringUtils
.
isNotBlank
(
orderQueryParam
.
getChannelOrderNo
())
||
Objects
.
nonNull
(
orderQueryParam
.
getChannelId
()))
{
...
...
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