diff --git a/src/main/java/com/sczx/pay/alipay/service/impl/ItemServiceImpl.java b/src/main/java/com/sczx/pay/alipay/service/impl/ItemServiceImpl.java index 915a1ef..c92f0bd 100644 --- a/src/main/java/com/sczx/pay/alipay/service/impl/ItemServiceImpl.java +++ b/src/main/java/com/sczx/pay/alipay/service/impl/ItemServiceImpl.java @@ -415,30 +415,35 @@ public class ItemServiceImpl implements ItemService { @Override public OpenResponse shopQuery() { - return AlipayApiTemplate.execute(new AlipayApiCallback() { + return AlipayApiTemplate.execute(new AlipayApiCallback() { @Override - public AntMerchantExpandShopQueryResponse process() throws AlipayApiException { + public AntMerchantExpandShopPageQueryResponse process() throws AlipayApiException { // 构造请求参数以调用接口 - AntMerchantExpandShopQueryRequest request = new AntMerchantExpandShopQueryRequest(); - AntMerchantExpandShopQueryModel model = new AntMerchantExpandShopQueryModel(); + AntMerchantExpandShopPageQueryRequest request = new AntMerchantExpandShopPageQueryRequest(); + AntMerchantExpandShopPageQueryModel model = new AntMerchantExpandShopPageQueryModel(); // 设置履约类型 // 设置外部门店编号 - model.setStoreId("No.0731101"); + //model.setStoreId("No.0731101"); model.setIpRoleId("2021004169641281"); + // 设置页码 + model.setPageNum(1L); + + // 设置每页查询大小 + model.setPageSize(10L); //ST1000000000000010 request.setBizModel(model); return alipaySdkUtil.execute(request); } @Override - public String getData(AntMerchantExpandShopQueryResponse response) { + public String getData(AntMerchantExpandShopPageQueryResponse response) { return response.getBody(); } @Override public String getApiName() { - return "ant.merchant.expand.shop.query"; + return "ant.merchant.expand.shop.page.query"; } }); }