Commit 16386ca7 by “zcwang”

add: 查询供应商信息

parent 425fc16c
Pipeline #43528 passed with stages
in 1 minute 41 seconds
......@@ -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
......@@ -39,3 +39,6 @@ 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
# 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
private RpcTemplate rpcTemplate;
@Value("${supplier.url}")
private String riskUrl;
private String supplierUrl;
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;
}
}
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