Commit 16386ca7 by “zcwang”

add: 查询供应商信息

parent 425fc16c
...@@ -42,3 +42,5 @@ spring.redis.pool.max-wait=10000 ...@@ -42,3 +42,5 @@ spring.redis.pool.max-wait=10000
spring.redis.host=yx-cust23-online.ncr.cn-east-p1.internal. spring.redis.host=yx-cust23-online.ncr.cn-east-p1.internal.
spring.redis.port=32427 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
...@@ -39,3 +39,6 @@ spring.redis.pool.max-idle=20 ...@@ -39,3 +39,6 @@ spring.redis.pool.max-idle=20
spring.redis.pool.max-wait=10000 spring.redis.pool.max-wait=10000
spring.redis.host=yx-cust23-test.ncr.cn-east-p1.internal spring.redis.host=yx-cust23-test.ncr.cn-east-p1.internal
spring.redis.port=31461 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
...@@ -28,15 +28,21 @@ public class FlowRpcSupplierInfoServiceImpl implements FlowRpcSupplierInfoServic ...@@ -28,15 +28,21 @@ public class FlowRpcSupplierInfoServiceImpl implements FlowRpcSupplierInfoServic
private RpcTemplate rpcTemplate; private RpcTemplate rpcTemplate;
@Value("${supplier.url}") @Value("${supplier.url}")
private String riskUrl; private String supplierUrl;
Logger logger = LoggerFactory.getLogger(FlowRpcSupplierInfoServiceImpl.class); Logger logger = LoggerFactory.getLogger(FlowRpcSupplierInfoServiceImpl.class);
@Override @Override
public List<SupplierUserRsp> querySupplierRelatedUser(SupplierRelatedUserReq req) { 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 = null;
List<SupplierUserRsp> objects = rpcTemplate.postJson(url, JSON.toJSONString(req),500,new RpcListData<>(SupplierUserRsp.class)); try {
logger.error("请求返回结果"+objects); 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; return objects;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment