| | |
| | | jresult.put("data", new JSONArray()); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | generateIfsStockQueryParams(jsonObject, ifsStockQueryDTO, ifsStockQueryDTO.getPage(), ifsStockQueryDTO.getLimit()); |
| | | Result result = ifsApiUtils.getIfsStock(jsonObject.toJSONString()); |
| | | Result result = ifsApiUtils.getIfsStock("ZTNS",jsonObject.toJSONString()); |
| | | if (result.getCode() == 200) { |
| | | JSONObject data = (JSONObject) JSON.toJSON(result.getData()); |
| | | JSONArray array = new JSONArray(); |
| | |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导出失败"); |
| | |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |