| Line 259... |
Line 259... |
| 259 |
HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, responseObject);
|
259 |
HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, responseObject);
|
| 260 |
return new ResponseEntity<>(profitMandiResponse, HttpStatus.INTERNAL_SERVER_ERROR);
|
260 |
return new ResponseEntity<>(profitMandiResponse, HttpStatus.INTERNAL_SERVER_ERROR);
|
| 261 |
}
|
261 |
}
|
| 262 |
JsonArray result_json = Json.parse(response).asArray();
|
262 |
JsonArray result_json = Json.parse(response).asArray();
|
| 263 |
for (JsonValue j : result_json) {
|
263 |
for (JsonValue j : result_json) {
|
| 264 |
logger.info("res " + j.asArray());
|
264 |
//logger.info("res " + j.asArray());
|
| 265 |
List<Object> innerObject = new ArrayList<>();
|
265 |
List<Object> innerObject = new ArrayList<>();
|
| 266 |
for (JsonValue jsonObject : j.asArray()) {
|
266 |
for (JsonValue jsonObject : j.asArray()) {
|
| 267 |
innerObject.add(toDealObject(jsonObject.asObject()));
|
267 |
innerObject.add(toDealObject(jsonObject.asObject()));
|
| 268 |
}
|
268 |
}
|
| 269 |
if (innerObject.size() > 0) {
|
269 |
if (innerObject.size() > 0) {
|
| Line 385... |
Line 385... |
| 385 |
RestClient rc = new RestClient(SchemeType.HTTP, host, port);
|
385 |
RestClient rc = new RestClient(SchemeType.HTTP, host, port);
|
| 386 |
String response = rc.get(uri, new HashMap<>());
|
386 |
String response = rc.get(uri, new HashMap<>());
|
| 387 |
JsonArray result_json = Json.parse(response).asArray();
|
387 |
JsonArray result_json = Json.parse(response).asArray();
|
| 388 |
List<Object> responseObject = new ArrayList<>();
|
388 |
List<Object> responseObject = new ArrayList<>();
|
| 389 |
for (JsonValue j : result_json) {
|
389 |
for (JsonValue j : result_json) {
|
| 390 |
logger.info("res " + j.asArray());
|
390 |
//logger.info("res " + j.asArray());
|
| 391 |
List<Object> innerObject = new ArrayList<>();
|
391 |
List<Object> innerObject = new ArrayList<>();
|
| 392 |
for (JsonValue jsonObject : j.asArray()) {
|
392 |
for (JsonValue jsonObject : j.asArray()) {
|
| 393 |
innerObject.add(toDealObject(jsonObject.asObject()));
|
393 |
innerObject.add(toDealObject(jsonObject.asObject()));
|
| 394 |
}
|
394 |
}
|
| 395 |
if (innerObject.size() > 0) {
|
395 |
if (innerObject.size() > 0) {
|