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
cbb4062e
Commit
cbb4062e
authored
Mar 19, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无数据的情况按照正确处理
parent
73eba5e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
KaServiceImpl.java
...va/cn/quantgroup/customer/service/impl/KaServiceImpl.java
+1
-1
UserServiceImpl.java
.../cn/quantgroup/customer/service/impl/UserServiceImpl.java
+6
-4
No files found.
src/main/java/cn/quantgroup/customer/service/impl/KaServiceImpl.java
View file @
cbb4062e
...
@@ -81,7 +81,7 @@ public class KaServiceImpl implements IKaService {
...
@@ -81,7 +81,7 @@ public class KaServiceImpl implements IKaService {
if
(
StringUtils
.
isBlank
(
result
))
{
if
(
StringUtils
.
isBlank
(
result
))
{
log
.
error
(
"{} 查询orderMapping失败 jsonResult={}"
,
logPre
,
result
);
log
.
error
(
"{} 查询orderMapping失败 jsonResult={}"
,
logPre
,
result
);
return
JsonResult
.
buildErrorStateResult
(
"查询
orderMapping失败
"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"查询
数据异常
"
,
null
);
}
}
TypeReference
<
JsonResult
<
LoanOrderMapping
>>
typeToken
=
new
TypeReference
<
JsonResult
<
LoanOrderMapping
>>()
{
TypeReference
<
JsonResult
<
LoanOrderMapping
>>
typeToken
=
new
TypeReference
<
JsonResult
<
LoanOrderMapping
>>()
{
};
};
...
...
src/main/java/cn/quantgroup/customer/service/impl/UserServiceImpl.java
View file @
cbb4062e
...
@@ -354,13 +354,12 @@ public class UserServiceImpl implements IUserService {
...
@@ -354,13 +354,12 @@ public class UserServiceImpl implements IUserService {
if
(
orderParam
+
userParam
==
0
)
{
if
(
orderParam
+
userParam
==
0
)
{
result
.
setValue
(
"参数不能为空"
);
result
.
setValue
(
"参数不能为空"
);
return
result
;
return
result
;
}
else
if
(
orderParam
+
userParam
>
1
)
{
}
else
if
(
orderParam
+
userParam
>
1
)
{
result
.
setValue
(
"只能选择一个参数进行查询"
);
result
.
setValue
(
"只能选择一个参数进行查询"
);
return
result
;
return
result
;
}
}
//分类参数验证 订单参数优先
//分类参数验证 订单参数优先
if
(
orderParam
==
1
)
{
if
(
orderParam
==
1
)
{
result
.
setKey
(
true
);
result
.
setKey
(
true
);
...
@@ -497,9 +496,12 @@ public class UserServiceImpl implements IUserService {
...
@@ -497,9 +496,12 @@ public class UserServiceImpl implements IUserService {
StringUtils
.
isNotBlank
(
orderQueryParam
.
getApplyOrderNo
()))
{
StringUtils
.
isNotBlank
(
orderQueryParam
.
getApplyOrderNo
()))
{
//通过ka获得userId然后通过userId查询
//通过ka获得userId然后通过userId查询
JsonResult
<
LoanOrderMapping
>
orderMapping
=
kaService
.
findOrderMapping
(
orderQueryParam
);
JsonResult
<
LoanOrderMapping
>
orderMapping
=
kaService
.
findOrderMapping
(
orderQueryParam
);
if
(!
orderMapping
.
isSuccess
()
||
Objects
.
isNull
(
orderMapping
.
getData
())
)
{
if
(!
orderMapping
.
isSuccess
())
{
log
.
error
(
"{} 查询orderMapping失败 param={} result={}"
,
logPre
,
orderQueryParam
,
orderMapping
);
log
.
error
(
"{} 查询orderMapping失败 param={} result={}"
,
logPre
,
orderQueryParam
,
orderMapping
);
return
JsonResult
.
buildErrorStateResult
(
"查询orderMapping失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"查询失败"
,
null
);
}
if
(
Objects
.
isNull
(
orderMapping
.
getData
()))
{
return
JsonResult
.
buildSuccessResult
(
"无数据,请用其他参数查询"
,
null
);
}
}
Long
qgUserId
=
orderMapping
.
getData
().
getQgUserId
();
Long
qgUserId
=
orderMapping
.
getData
().
getQgUserId
();
UserSysResult
<
XUserDetail
>
userDetailByUserId
=
userSdk
.
getService
().
findUserDetailByUserId
(
qgUserId
);
UserSysResult
<
XUserDetail
>
userDetailByUserId
=
userSdk
.
getService
().
findUserDetailByUserId
(
qgUserId
);
...
...
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