|
|
@@ -101,7 +101,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionDetailinfoQueryRequest();
|
|
|
queryRequest.setBizModel(queryModel);
|
|
|
AlipayEbppInvoiceInstitutionDetailinfoQueryResponse queryResponse =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(queryRequest);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(queryRequest);
|
|
|
if (queryResponse.isSuccess()) {
|
|
|
InstitutionVO vo = new InstitutionVO();
|
|
|
vo.setInstitutionId(queryResponse.getInstitutionId());
|
|
|
@@ -391,7 +391,7 @@ public class InstitutionService {
|
|
|
Map<String, String> standardIdMapping = new java.util.HashMap<>();
|
|
|
try {
|
|
|
AlipayEbppInvoiceInstitutionCreateResponse createResponse =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(createRequest);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(createRequest);
|
|
|
if (!createResponse.isSuccess()) {
|
|
|
throw new BusinessException(400, "创建费控制度失败: " +
|
|
|
(createResponse.getSubMsg() != null ? createResponse.getSubMsg() : createResponse.getMsg()));
|
|
|
@@ -435,7 +435,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionScopeModifyRequest();
|
|
|
scopeReq.setBizModel(scopeModel);
|
|
|
AlipayEbppInvoiceInstitutionScopeModifyResponse scopeResp =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(scopeReq);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(scopeReq);
|
|
|
if (!scopeResp.isSuccess()) {
|
|
|
throw new BusinessException(400, "设置适用范围失败: " +
|
|
|
(scopeResp.getSubMsg() != null ? scopeResp.getSubMsg() : scopeResp.getMsg()));
|
|
|
@@ -452,7 +452,7 @@ public class InstitutionService {
|
|
|
AlipayEbppInvoiceInstitutionDeleteRequest rollbackReq =
|
|
|
new AlipayEbppInvoiceInstitutionDeleteRequest();
|
|
|
rollbackReq.setBizModel(rollbackModel);
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(rollbackReq);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(rollbackReq);
|
|
|
} catch (Exception ignored) {
|
|
|
log.warn("回滚删除支付宝制度失败: institutionId={}", institutionId);
|
|
|
}
|
|
|
@@ -496,7 +496,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceIssueruleCreateRequest();
|
|
|
irReq.setBizModel(irModel);
|
|
|
AlipayEbppInvoiceIssueruleCreateResponse irResp =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(irReq);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(irReq);
|
|
|
if (!irResp.isSuccess()) {
|
|
|
throw new BusinessException(400, "创建发放规则失败: " +
|
|
|
(irResp.getSubMsg() != null ? irResp.getSubMsg() : irResp.getMsg()));
|
|
|
@@ -514,7 +514,7 @@ public class InstitutionService {
|
|
|
AlipayEbppInvoiceInstitutionDeleteRequest rollbackReq =
|
|
|
new AlipayEbppInvoiceInstitutionDeleteRequest();
|
|
|
rollbackReq.setBizModel(rollbackModel);
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(rollbackReq);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(rollbackReq);
|
|
|
} catch (Exception ignored) {
|
|
|
log.warn("回滚删除支付宝制度失败: institutionId={}", institutionId);
|
|
|
}
|
|
|
@@ -785,7 +785,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionModifyRequest();
|
|
|
modifyRequest.setBizModel(modifyModel);
|
|
|
AlipayEbppInvoiceInstitutionModifyResponse modifyResponse =
|
|
|
- alipayClientFactory.getClient(existing.getEnterpriseId()).execute(modifyRequest);
|
|
|
+ alipayClientFactory.getClient(existing.getEnterpriseId()).certificateExecute(modifyRequest);
|
|
|
if (!modifyResponse.isSuccess()) {
|
|
|
log.warn("支付宝 institution.modify 失败: {}",
|
|
|
modifyResponse.getSubMsg() != null ? modifyResponse.getSubMsg() : modifyResponse.getMsg());
|
|
|
@@ -807,7 +807,7 @@ public class InstitutionService {
|
|
|
detailModel.setEnterpriseId(existing.getEnterpriseId());
|
|
|
var detailReq = new AlipayEbppInvoiceInstitutionDetailinfoQueryRequest();
|
|
|
detailReq.setBizModel(detailModel);
|
|
|
- var detailResp = alipayClientFactory.getClient(existing.getEnterpriseId()).execute(detailReq);
|
|
|
+ var detailResp = alipayClientFactory.getClient(existing.getEnterpriseId()).certificateExecute(detailReq);
|
|
|
|
|
|
if (detailResp.isSuccess() && detailResp.getStandardInfoDetailList() != null) {
|
|
|
String periodFactor = mapPeriodTypeToFactor(existing.getPeriodType());
|
|
|
@@ -898,7 +898,7 @@ public class InstitutionService {
|
|
|
@Override
|
|
|
public com.alipay.api.AlipayObject getBizModel() { return null; }
|
|
|
};
|
|
|
- client.execute(request, null);
|
|
|
+ client.certificateExecute(request, null);
|
|
|
log.info("已同步 modify_standard_detail_info: amount={}, singleLimit={}",
|
|
|
dto.getAmount(), dto.getSingleLimit());
|
|
|
}
|
|
|
@@ -925,7 +925,7 @@ public class InstitutionService {
|
|
|
AlipayEbppInvoiceInstitutionScopeModifyRequest scopeReq =
|
|
|
new AlipayEbppInvoiceInstitutionScopeModifyRequest();
|
|
|
scopeReq.setBizModel(scopeModel);
|
|
|
- alipayClientFactory.getClient(existing.getEnterpriseId()).execute(scopeReq);
|
|
|
+ alipayClientFactory.getClient(existing.getEnterpriseId()).certificateExecute(scopeReq);
|
|
|
log.info("修改制度时同步适用范围成功: institutionId={}, adapterType={}",
|
|
|
existing.getInstitutionId(), adapterType);
|
|
|
} catch (Exception e) {
|
|
|
@@ -989,7 +989,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionDeleteRequest();
|
|
|
deleteRequest.setBizModel(deleteModel);
|
|
|
AlipayEbppInvoiceInstitutionDeleteResponse deleteResponse =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(deleteRequest);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(deleteRequest);
|
|
|
if (!deleteResponse.isSuccess()) {
|
|
|
log.warn("支付宝删除失败(可能已删): {}",
|
|
|
deleteResponse.getSubMsg() != null ? deleteResponse.getSubMsg() : deleteResponse.getMsg());
|
|
|
@@ -1055,7 +1055,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionScopepageinfoQueryRequest();
|
|
|
queryRequest.setBizModel(queryModel);
|
|
|
AlipayEbppInvoiceInstitutionScopepageinfoQueryResponse queryResponse =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(queryRequest);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(queryRequest);
|
|
|
if (!queryResponse.isSuccess()) {
|
|
|
throw new BusinessException(400, "查询适用范围失败: " +
|
|
|
(queryResponse.getSubMsg() != null ? queryResponse.getSubMsg() : queryResponse.getMsg()));
|
|
|
@@ -1249,7 +1249,7 @@ public class InstitutionService {
|
|
|
new AlipayEbppInvoiceInstitutionScopeModifyRequest();
|
|
|
scopeRequest.setBizModel(scopeModel);
|
|
|
AlipayEbppInvoiceInstitutionScopeModifyResponse scopeResponse =
|
|
|
- alipayClientFactory.getClient(enterpriseId).execute(scopeRequest);
|
|
|
+ alipayClientFactory.getClient(enterpriseId).certificateExecute(scopeRequest);
|
|
|
if (!scopeResponse.isSuccess()) {
|
|
|
throw new BusinessException(400, "设置适用范围失败: " +
|
|
|
(scopeResponse.getSubMsg() != null ? scopeResponse.getSubMsg() : scopeResponse.getMsg()));
|