From c043181fc8d8e1b6896d79d46f0d9d912a2fcd40 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Thu, 3 Aug 2023 17:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E9=A1=B5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/irs/controller/ApplicationController.java | 6 +++--- .../src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/ApplicationController.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/ApplicationController.java index ec2df81..40289c2 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/ApplicationController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/ApplicationController.java @@ -44,9 +44,9 @@ public class ApplicationController { return appIrsManage.searchApps(apply); } - @GetMapping("/digitalResourcesIndicators/{appCode}") - public JSONObject getDigitalResourcesIndicators(@PathVariable String appCode) { - return appIrsManage.getDigitalResourceIndicatorsByAppCode(appCode); + @GetMapping("/digitalResourcesIndicators/{appCode}/{pageSize}") + public JSONObject getDigitalResourcesIndicators(@PathVariable String appCode,@PathVariable Integer pageSize) { + return appIrsManage.getDigitalResourceIndicatorsByAppCode(appCode, pageSize); } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java index 9d413f8..6120d4c 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java @@ -360,7 +360,7 @@ public class AppIrsManage { return forEntity.getBody(); } - public JSONObject getDigitalResourceIndicatorsByAppCode(String appCode) { + public JSONObject getDigitalResourceIndicatorsByAppCode(String appCode, Integer pageSize) { long timestamp = System.currentTimeMillis(); String appSecret = driAppSecret; String appKey = driAppKey; @@ -379,7 +379,7 @@ public class AppIrsManage { String url = driUrl + "?" + "requestTime=" + timestamp + "&sign=" + sign + - "&appKey=" + appKey + "&appCode=" + appCode; + "&appKey=" + appKey + "&appCode=" + appCode + "&pageIndex=1&pageSize=" + pageSize; log.info("url :{}", url); ResponseEntity forEntity = restTemplate.getForEntity(url, JSONObject.class); log.info(Objects.requireNonNull(forEntity.getBody()).toJSONString());