|
|
@ -37,13 +37,15 @@ public class YtHsResUtils { |
|
|
|
param.put(CARD_NO,cardNo); |
|
|
|
param.put(ROW_NUM,rowNum); |
|
|
|
param.put(PAGE_SIZE,pageSize); |
|
|
|
log.info("hsjc api param:{}",param); |
|
|
|
Result<String> result = HttpClientManager.getInstance().sendGet(URL, param); |
|
|
|
log.info("hsjc api result:{}",JSON.toJSONString(result)); |
|
|
|
if (result.success()) { |
|
|
|
return JSON.parseObject(result.getData(), YtHsjcResDTO.class); |
|
|
|
} |
|
|
|
YtHsjcResDTO resultResult = new YtHsjcResDTO(); |
|
|
|
resultResult.setData(new ArrayList<>()); |
|
|
|
log.info("hsjc api param:{}, result:{}",param,JSON.toJSONString(resultResult)); |
|
|
|
|
|
|
|
return resultResult; |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(String.format("烟台核算检测结果查询异常cardNo:%s,异常信息:%s", cardNo, e.getMessage())); |
|
|
|