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
cf152f00
Commit
cf152f00
authored
Oct 16, 2020
by
鹿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结清证明下载
parent
eadab47a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
JsonResult.java
src/main/java/cn/quantgroup/customer/rest/vo/JsonResult.java
+1
-1
IceServiceImpl.java
...a/cn/quantgroup/customer/service/impl/IceServiceImpl.java
+10
-7
OrderServiceImpl.java
...cn/quantgroup/customer/service/impl/OrderServiceImpl.java
+1
-2
No files found.
src/main/java/cn/quantgroup/customer/rest/vo/JsonResult.java
View file @
cf152f00
...
@@ -93,6 +93,6 @@ public class JsonResult<T> implements Serializable {
...
@@ -93,6 +93,6 @@ public class JsonResult<T> implements Serializable {
}
}
public
boolean
isCodeSuccess
()
{
public
boolean
isCodeSuccess
()
{
return
"0
000
"
.
equals
(
code
);
return
"0"
.
equals
(
code
);
}
}
}
}
src/main/java/cn/quantgroup/customer/service/impl/IceServiceImpl.java
View file @
cf152f00
...
@@ -32,6 +32,9 @@ public class IceServiceImpl implements IIceService {
...
@@ -32,6 +32,9 @@ public class IceServiceImpl implements IIceService {
@Value
(
"${mo.ice.http}"
)
@Value
(
"${mo.ice.http}"
)
private
String
iceUrl
;
private
String
iceUrl
;
@Value
(
"${mo-sidecar.http}"
)
private
String
sidecarUrl
;
private
final
IHttpService
httpService
;
private
final
IHttpService
httpService
;
@Autowired
@Autowired
...
@@ -148,7 +151,7 @@ public class IceServiceImpl implements IIceService {
...
@@ -148,7 +151,7 @@ public class IceServiceImpl implements IIceService {
public
JsonResult
<
List
<
SettleStatus
>>
findSettleFlag
(
List
<
Long
>
loanIds
)
{
public
JsonResult
<
List
<
SettleStatus
>>
findSettleFlag
(
List
<
Long
>
loanIds
)
{
String
logPre
=
"IceService.findSettleFlag"
;
String
logPre
=
"IceService.findSettleFlag"
;
log
.
info
(
"{} 结清状态查询 loanIds={}"
,
logPre
,
loanIds
);
log
.
info
(
"{} 结清状态查询 loanIds={}"
,
logPre
,
loanIds
);
String
url
=
ice
Url
+
"/middle_office/settle_proof/status"
;
String
url
=
sidecar
Url
+
"/middle_office/settle_proof/status"
;
if
(
CollectionUtils
.
isEmpty
(
loanIds
))
{
if
(
CollectionUtils
.
isEmpty
(
loanIds
))
{
log
.
error
(
"{} 订单号全为空 loanIds={}"
,
logPre
,
loanIds
);
log
.
error
(
"{} 订单号全为空 loanIds={}"
,
logPre
,
loanIds
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
...
@@ -160,7 +163,7 @@ public class IceServiceImpl implements IIceService {
...
@@ -160,7 +163,7 @@ public class IceServiceImpl implements IIceService {
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
String
result
;
String
result
;
try
{
try
{
result
=
httpService
.
pos
t
(
url
,
header
,
param
);
result
=
httpService
.
ge
t
(
url
,
header
,
param
);
log
.
info
(
"{} 结清状态查询 loanIds={},result:{}"
,
logPre
,
loanIds
,
result
);
log
.
info
(
"{} 结清状态查询 loanIds={},result:{}"
,
logPre
,
loanIds
,
result
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"{} 通讯异常 url={},param={}"
,
logPre
,
url
,
param
,
e
);
log
.
error
(
"{} 通讯异常 url={},param={}"
,
logPre
,
url
,
param
,
e
);
...
@@ -181,13 +184,13 @@ public class IceServiceImpl implements IIceService {
...
@@ -181,13 +184,13 @@ public class IceServiceImpl implements IIceService {
public
JsonResult
applySettle
(
Long
loanId
)
{
public
JsonResult
applySettle
(
Long
loanId
)
{
String
logPre
=
"IceService.applySettle"
;
String
logPre
=
"IceService.applySettle"
;
log
.
info
(
"{} 申请结清下载 loanIds={}"
,
logPre
,
loanId
);
log
.
info
(
"{} 申请结清下载 loanIds={}"
,
logPre
,
loanId
);
String
url
=
iceUrl
+
"/middle_office/settle
proof/apply"
;
String
url
=
sidecarUrl
+
"/middle_office/settle_
proof/apply"
;
if
(
loanId
==
null
)
{
if
(
loanId
==
null
)
{
log
.
error
(
"{} 申请订单号loanId为空"
,
logPre
);
log
.
error
(
"{} 申请订单号loanId为空"
,
logPre
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
}
}
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
param
.
put
(
"loanId"
,
loanId
);
param
.
put
(
"loanId"
,
String
.
valueOf
(
loanId
)
);
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
...
@@ -213,19 +216,19 @@ public class IceServiceImpl implements IIceService {
...
@@ -213,19 +216,19 @@ public class IceServiceImpl implements IIceService {
public
JsonResult
downloadSettle
(
HttpServletResponse
response
,
Long
loanId
)
{
public
JsonResult
downloadSettle
(
HttpServletResponse
response
,
Long
loanId
)
{
String
logPre
=
"IceService.downloadSettle"
;
String
logPre
=
"IceService.downloadSettle"
;
log
.
info
(
"{} 结清证明下载 loanIds={}"
,
logPre
,
loanId
);
log
.
info
(
"{} 结清证明下载 loanIds={}"
,
logPre
,
loanId
);
String
url
=
ice
Url
+
"/middle_office/settle_proof/download"
;
String
url
=
sidecar
Url
+
"/middle_office/settle_proof/download"
;
if
(
loanId
==
null
)
{
if
(
loanId
==
null
)
{
log
.
error
(
"{} 申请订单号loanId为空 loanId"
,
logPre
);
log
.
error
(
"{} 申请订单号loanId为空 loanId"
,
logPre
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"申请订单号为空"
,
null
);
}
}
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
param
.
put
(
"loanId"
,
loanId
);
param
.
put
(
"loanId"
,
String
.
valueOf
(
loanId
)
);
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
String
result
;
String
result
;
try
{
try
{
result
=
httpService
.
pos
t
(
url
,
header
,
param
);
result
=
httpService
.
ge
t
(
url
,
header
,
param
);
log
.
info
(
"{} 结清证明下载 loanId={},result:{}"
,
logPre
,
loanId
,
result
);
log
.
info
(
"{} 结清证明下载 loanId={},result:{}"
,
logPre
,
loanId
,
result
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"{} 通讯异常 url={},param={}"
,
logPre
,
url
,
param
,
e
);
log
.
error
(
"{} 通讯异常 url={},param={}"
,
logPre
,
url
,
param
,
e
);
...
...
src/main/java/cn/quantgroup/customer/service/impl/OrderServiceImpl.java
View file @
cf152f00
...
@@ -47,8 +47,7 @@ public class OrderServiceImpl implements IOrderService {
...
@@ -47,8 +47,7 @@ public class OrderServiceImpl implements IOrderService {
@Autowired
@Autowired
private
IIceService
iceService
;
private
IIceService
iceService
;
@Autowired
private
IFileService
fileService
;
...
...
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