Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
胡园园
yanxuan-qc-change-system
Commits
16386ca7
Commit
16386ca7
authored
Dec 08, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 查询供应商信息
parent
425fc16c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
application.properties
...y/src/main/resources/config/online/application.properties
+3
-0
application.properties
...bly/src/main/resources/config/test/application.properties
+5
-2
FlowRpcSupplierInfoServiceImpl.java
...on/flow/supplier/impl/FlowRpcSupplierInfoServiceImpl.java
+10
-4
No files found.
yanxuan-qc-change-system-assembly/src/main/resources/config/online/application.properties
View file @
16386ca7
...
...
@@ -42,3 +42,5 @@ spring.redis.pool.max-wait=10000
spring.redis.host
=
yx-cust23-online.ncr.cn-east-p1.internal.
spring.redis.port
=
32427
# supplier
supplier.url
=
http://127.0.0.1:8550/proxy/test-v1.yanxuan-supplier-ms.service.mailsaas
\ No newline at end of file
yanxuan-qc-change-system-assembly/src/main/resources/config/test/application.properties
View file @
16386ca7
...
...
@@ -38,4 +38,7 @@ spring.redis.pool.max-active=50
spring.redis.pool.max-idle
=
20
spring.redis.pool.max-wait
=
10000
spring.redis.host
=
yx-cust23-test.ncr.cn-east-p1.internal
spring.redis.port
=
31461
\ No newline at end of file
spring.redis.port
=
31461
# supplier
supplier.url
=
http://127.0.0.1:8550/proxy/test-v1.yanxuan-supplier-ms.service.mailsaas
\ No newline at end of file
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/impl/FlowRpcSupplierInfoServiceImpl.java
View file @
16386ca7
...
...
@@ -28,15 +28,21 @@ public class FlowRpcSupplierInfoServiceImpl implements FlowRpcSupplierInfoServic
private
RpcTemplate
rpcTemplate
;
@Value
(
"${supplier.url}"
)
private
String
risk
Url
;
private
String
supplier
Url
;
Logger
logger
=
LoggerFactory
.
getLogger
(
FlowRpcSupplierInfoServiceImpl
.
class
);
@Override
public
List
<
SupplierUserRsp
>
querySupplierRelatedUser
(
SupplierRelatedUserReq
req
)
{
String
url
=
"http://127.0.0.1:8550/proxy/test-v1.yanxuan-supplier-ms.service.mailsaas/api/supplier/batchGetSupplierRelatedUser.json"
;
List
<
SupplierUserRsp
>
objects
=
rpcTemplate
.
postJson
(
url
,
JSON
.
toJSONString
(
req
),
500
,
new
RpcListData
<>(
SupplierUserRsp
.
class
));
logger
.
error
(
"请求返回结果"
+
objects
);
List
<
SupplierUserRsp
>
objects
=
null
;
try
{
String
url
=
supplierUrl
+
path
;
objects
=
rpcTemplate
.
postJson
(
url
,
JSON
.
toJSONString
(
req
),
500
,
new
RpcListData
<>(
SupplierUserRsp
.
class
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"请求返回结果,e:{}"
,
e
);
}
return
objects
;
}
}
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