|
|
@@ -244,7 +244,9 @@ public class SERESServiceImpl implements SERESService {
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> test(String token) throws Exception {
|
|
|
- Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
|
+ logger.info("action :testGetStock");
|
|
|
+ logger.info("token {}",token);
|
|
|
+ Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
|
String apiPath="/aito/DIS/INV_STOCK_STS/1.0.0";
|
|
|
String fullUrl = seresConfig.getUrl() + apiPath;
|
|
|
logger.info("fullUrl {}",fullUrl);
|
|
|
@@ -273,9 +275,8 @@ public class SERESServiceImpl implements SERESService {
|
|
|
logger.info("reqBody {}", JSON.toJSONString(reqBody));
|
|
|
}
|
|
|
try (CloseableHttpResponse response = httpClient.execute(httpPost)) {
|
|
|
- logger.info("resp {}", response.getEntity().getContent());
|
|
|
String respStr = EntityUtils.toString(response.getEntity(), "UTF-8");
|
|
|
- logger.info("respStr {}", respStr);
|
|
|
+ logger.info("rtest espStr {}", respStr);
|
|
|
return JSON.parseObject(respStr);
|
|
|
}catch (Exception e){
|
|
|
logger.info("Exception {}",e.getMessage());
|
|
|
@@ -299,7 +300,7 @@ public class SERESServiceImpl implements SERESService {
|
|
|
|
|
|
try (CloseableHttpResponse response = httpClient.execute(httpPost)) {
|
|
|
String respStr = EntityUtils.toString(response.getEntity(), "UTF-8");
|
|
|
- logger.info("resp {}", respStr);
|
|
|
+ logger.info("testToken resp {}", respStr);
|
|
|
} finally {
|
|
|
httpClient.close();
|
|
|
}
|
|
|
@@ -308,7 +309,7 @@ public class SERESServiceImpl implements SERESService {
|
|
|
public Map<String, Object> testGetStock(String token) throws Exception {
|
|
|
logger.info("action :testGetStock");
|
|
|
Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
|
-
|
|
|
+ logger.info("token {}",token);
|
|
|
CloseableHttpClient httpClient = HttpClients.createDefault();
|
|
|
String apiPath="/aito/DIS/INV_STOCK_STS/1.0.0";
|
|
|
String fullUrl = seresConfig.getUrl() + apiPath;
|