|
|
@ -10,6 +10,10 @@ import com.jianshui.common.utils.http.HttpHelper; |
|
|
|
import com.jianshui.invoice.domain.BillInfo; |
|
|
|
import com.jianshui.invoice.domain.BillInfo; |
|
|
|
import com.jianshui.invoice.domain.Redinfo; |
|
|
|
import com.jianshui.invoice.domain.Redinfo; |
|
|
|
import com.jianshui.invoice.domain.dto.*; |
|
|
|
import com.jianshui.invoice.domain.dto.*; |
|
|
|
|
|
|
|
import com.jianshui.invoice.domain.dto.api.InvoiceAllFileAcquisitionOnTWODTO; |
|
|
|
|
|
|
|
import com.jianshui.invoice.domain.dto.api.InvoiceAllFileAcquisitionTWODTO; |
|
|
|
|
|
|
|
import com.jianshui.invoice.domain.dto.api.InvoiceAllKshcTWODTO; |
|
|
|
|
|
|
|
import com.jianshui.invoice.domain.dto.api.InvoiceAllShhzTWODTO; |
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.service.IInvoiceRequestService; |
|
|
|
import com.jianshui.invoice.service.IInvoiceRequestService; |
|
|
|
import com.jianshui.invoice.factory.IInvoiceRequestFactory; |
|
|
|
import com.jianshui.invoice.factory.IInvoiceRequestFactory; |
|
|
@ -860,7 +864,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/getFileUrl/{identity}", "/api/invoice_all/v1/getFileUrl"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/getFileUrl/{identity}", "/api/invoice_all/v2/getFileUrl"}) |
|
|
|
public Object getFileUrl(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object getFileUrl(HttpServletRequest request, String identity) throws Exception { |
|
|
|
if (StringUtils.isEmpty(identity)) { |
|
|
|
if (StringUtils.isEmpty(identity)) { |
|
|
|
return AjaxResult.error(ErrorCode.EMPTY_IDENTITY); |
|
|
|
return AjaxResult.error(ErrorCode.EMPTY_IDENTITY); |
|
|
@ -880,8 +884,9 @@ public class InvoiceController { |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvoiceAllFileAcquisitionTWODTO invoiceAllFileAcquisitionTWODTO= decryptResult.toJavaObject(InvoiceAllFileAcquisitionTWODTO.class); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
HXResponse result = invoiceService.getFileUrl(decryptResult, companyservice); |
|
|
|
HXResponse result = invoiceService.getFileUrl(invoiceAllFileAcquisitionTWODTO, companyservice); |
|
|
|
|
|
|
|
|
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
@ -894,7 +899,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/getFileAcquisition/{identity}", "/api/invoice_all/v1/getFileAcquisition"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/getFileAcquisition/{identity}", "/api/invoice_all/v2/getFileAcquisition"}) |
|
|
|
public Object getFileAcquisition(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object getFileAcquisition(HttpServletRequest request, String identity) throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
// TODO: 2023/4/6 getFileAcquisitionOn
|
|
|
|
// TODO: 2023/4/6 getFileAcquisitionOn
|
|
|
@ -916,8 +921,9 @@ public class InvoiceController { |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvoiceAllFileAcquisitionOnTWODTO invoiceAllFileAcquisitionDTO= decryptResult.toJavaObject(InvoiceAllFileAcquisitionOnTWODTO.class); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
HXResponse result = invoiceService.getFileAcquisitionOn(decryptResult, companyservice); |
|
|
|
HXResponse result = invoiceService.getFileAcquisitionOn(invoiceAllFileAcquisitionDTO, companyservice); |
|
|
|
|
|
|
|
|
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
@ -931,7 +937,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/qrcode/{identity}", "/api/invoice_all/v1/qrcode"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/qrcode/{identity}", "/api/invoice_all/v2/qrcode"}) |
|
|
|
public Object qrcode(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object qrcode(HttpServletRequest request, String identity) throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
// qrcode
|
|
|
|
// qrcode
|
|
|
@ -967,7 +973,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/query/{identity}", "/api/invoice_all/v1/query"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/query/{identity}", "/api/invoice_all/v2/query"}) |
|
|
|
public Object query(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object query(HttpServletRequest request, String identity) throws Exception { |
|
|
|
// query
|
|
|
|
// query
|
|
|
|
|
|
|
|
|
|
|
@ -1003,7 +1009,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/print_xml/{identity}", "/api/invoice_all/v1/print_xml"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/print_xml/{identity}", "/api/invoice_all/v2/print_xml"}) |
|
|
|
public Object printXmlml(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object printXmlml(HttpServletRequest request, String identity) throws Exception { |
|
|
|
// getPrintXML
|
|
|
|
// getPrintXML
|
|
|
|
|
|
|
|
|
|
|
@ -1039,7 +1045,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/issueFastRedInvoice/{identity}", "/api/invoice_all/v1/issueFastRedInvoice"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/issueFastRedInvoice/{identity}", "/api/invoice_all/v2/issueFastRedInvoice"}) |
|
|
|
public Object issueFastRedInvoice(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object issueFastRedInvoice(HttpServletRequest request, String identity) throws Exception { |
|
|
|
// issueFastRedInvoice
|
|
|
|
// issueFastRedInvoice
|
|
|
|
|
|
|
|
|
|
|
@ -1061,8 +1067,9 @@ public class InvoiceController { |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvoiceAllKshcTWODTO invoiceAllKshcDTO= decryptResult.toJavaObject(InvoiceAllKshcTWODTO.class); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
HXResponse result = invoiceService.issueFastRedInvoice(decryptResult, companyservice); |
|
|
|
HXResponse result = invoiceService.issueFastRedInvoice(invoiceAllKshcDTO, companyservice); |
|
|
|
|
|
|
|
|
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
@ -1076,7 +1083,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/invoice_statistics/{identity}", "/api/invoice_all/v1/invoice_statistics"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/invoice_statistics/{identity}", "/api/invoice_all/v2/invoice_statistics"}) |
|
|
|
public Object invoiceStatistics(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object invoiceStatistics(HttpServletRequest request, String identity) throws Exception { |
|
|
|
// invoiceStatic
|
|
|
|
// invoiceStatic
|
|
|
|
|
|
|
|
|
|
|
@ -1112,7 +1119,7 @@ public class InvoiceController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "", value = "身份认证", dataType = "string", example = "1130", required = true), |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", required = true)}) |
|
|
|
@PostMapping({"/api/invoice_all/v1/auditRedInfo/{identity}", "/api/invoice_all/v1/auditRedInfo"}) |
|
|
|
@PostMapping({"/api/invoice_all/v2/auditRedInfo/{identity}", "/api/invoice_all/v2/auditRedInfo"}) |
|
|
|
public Object auditRedInfo(HttpServletRequest request, String identity) throws Exception { |
|
|
|
public Object auditRedInfo(HttpServletRequest request, String identity) throws Exception { |
|
|
|
// auditRedInfo
|
|
|
|
// auditRedInfo
|
|
|
|
|
|
|
|
|
|
|
@ -1134,8 +1141,9 @@ public class InvoiceController { |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
serviceManageService.companyConsume("invoice", companyservice.getCompanyid()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvoiceAllShhzTWODTO invoiceAllShhzDTO= decryptResult.toJavaObject(InvoiceAllShhzTWODTO.class); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService(serviceKey); |
|
|
|
HXResponse result = invoiceService.auditRedInfo(decryptResult, companyservice); |
|
|
|
HXResponse result = invoiceService.auditRedInfo(invoiceAllShhzDTO, companyservice); |
|
|
|
|
|
|
|
|
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
String responseAdapterKey = serviceManageService.getResponseAdapterKey("invoice", companyservice.getCompanyid()); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|
IInvoiceResponseService invoiceResponseService = invoiceResponseFactory.getService(responseAdapterKey); |
|
|
|