|
|
|
@ -376,20 +376,18 @@ public class InvoiceController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
List<Object> result = new ArrayList<>(); |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
|
billInfo.setServiceSupplierKey(serviceKey); |
|
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
|
HXResponse tempResult = invoiceService.findReadInfoByHzqrdbh(billInfo, companyservice); |
|
|
|
|
result.add(tempResult.getData()); |
|
|
|
|
HXResponse hxResponse = new HXResponse(tempResult.getStatus(), tempResult.getMessage(), result); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|
|
|
|
|
|
|
Object query = invoiceResponseService.response(hxResponse, companyservice, "hzqrdFind"); |
|
|
|
|
Object query = invoiceResponseService.response(tempResult, companyservice, ""); |
|
|
|
|
return query; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|