升级完税证明

This commit is contained in:
钱涛 2024-07-03 15:34:23 +08:00
parent 3f723d7750
commit 420d0a1fff
2 changed files with 6 additions and 4 deletions

View File

@ -157,7 +157,7 @@ public class SzyhApiConstant {
/**
* 完税证明反馈
*/
public static final String GET_WITHHELD_VOUCHER_FEEDBACK = "gateway/iit/service/getWithheldVoucher";
public static final String GET_WITHHELD_VOUCHER_FEEDBACK = "gateway/iit/service/getWithheldVoucherFeedback";
/**
* 查询缴款状态

View File

@ -34,16 +34,18 @@ public class TaxPaymentClient extends TaxBaseClient {
/**
* 开具完税证明
*
* @param requestParam
* @return
*/
public WithheldVoucherResponse getWithheldVoucher(Map<String, Object> requestParam) {
public WithheldVoucherResponse getWithheldVoucher(Map<String, Object> requestParam) {
String url = apiConfig.getHost() + SzyhApiConstant.GET_WITHHELD_VOUCHER;
String requestId = request(url, requestParam);
url = apiConfig.getHost() + SzyhApiConstant.GET_WITHHELD_VOUCHER_FEEDBACK + "?requestId=" + requestId;
url = apiConfig.getHost() + SzyhApiConstant.GET_WITHHELD_VOUCHER_FEEDBACK;
Map<String, String> responseParam = new HashMap<>(1);
return postResponse(url, responseParam, WithheldVoucherResponse.class);
responseParam.put("requestId", requestId);
return response(url, responseParam, WithheldVoucherResponse.class);
}