no message

This commit is contained in:
2025-09-03 13:54:27 +08:00
parent facffec05d
commit 759771aa99
3 changed files with 39 additions and 0 deletions

View File

@ -124,5 +124,11 @@ public class ItemController {
return itemService.deliveryTemplateQuery();
}
@ApiOperation(value = "租赁类(实物)履约模板创建")
@ApiOperationSupport(order = 4)
@PostMapping(value = "/shop/query")
public OpenResponse<String> shopQuery() {
return itemService.deliveryTemplateQuery();
}
}

View File

@ -42,6 +42,8 @@ public interface ItemService {
OpenResponse<String> deliveryTemplateQuery();
OpenResponse<String> shopQuery();
OpenResponse<AlipayOpenAppItemQueryResponse> queryItemDetail(String itemId, String outItemId, long needEditSpu);
}

View File

@ -413,6 +413,37 @@ public class ItemServiceImpl implements ItemService {
}
@Override
public OpenResponse<String> shopQuery() {
return AlipayApiTemplate.execute(new AlipayApiCallback<String, AntMerchantExpandShopQueryResponse >() {
@Override
public AntMerchantExpandShopQueryResponse process() throws AlipayApiException {
// 构造请求参数以调用接口
AntMerchantExpandShopQueryRequest request = new AntMerchantExpandShopQueryRequest();
AntMerchantExpandShopQueryModel model = new AntMerchantExpandShopQueryModel();
// 设置履约类型
// 设置外部门店编号
model.setStoreId("No.0731101");
//ST1000000000000010
request.setBizModel(model);
return alipaySdkUtil.execute(request);
}
@Override
public String getData(AntMerchantExpandShopQueryResponse response) {
return response.getBody();
}
@Override
public String getApiName() {
return "ant.merchant.expand.shop.query";
}
});
}
private AlipayOpenAppItemCreateModel getAlipayOpenAppItemCreateModel(RentRuleItem rentRuleItem) throws AlipayApiException {
AlipayOpenAppItemCreateModel model = new AlipayOpenAppItemCreateModel();