|
|
|
@ -57,10 +57,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//入口报文适配器标志 这个东西是AisinoIncomeRequestAdapterImpl 中间的那块儿
|
|
|
|
|
private final static String SERVICE_KEY = "income"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO-xkng: 2022/9/20 看看请求的前置处理封到一个service里面去,调用一个。先把接口搞出来着。
|
|
|
|
|
private final static String SERVICE_KEY = "auth"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("状态采集") |
|
|
|
@ -87,7 +84,7 @@ public class InvoiceAuthController { |
|
|
|
|
JSONObject requestBody = incomeRequestService.decrypt(request, companyservice); |
|
|
|
|
|
|
|
|
|
// 获得请求实例(根据companyservicemanager配置获取),并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -130,7 +127,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -171,7 +168,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -212,7 +209,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -253,7 +250,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -293,7 +290,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -334,7 +331,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -375,7 +372,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice iAuthInvoice = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
|
|
|
|
|
//请求
|
|
|
|
@ -422,7 +419,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice incomeService = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
// 13位时间戳转10位
|
|
|
|
|
String CJKSRQ = requestBody.getString("CJKSRQ"); |
|
|
|
@ -472,7 +469,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice incomeService = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
IncomeMasterInformationDTO incomeGetInvoiceDTO = requestBody.toJavaObject(IncomeMasterInformationDTO.class); |
|
|
|
|
AjaxResult result = incomeService.masterInformation(incomeGetInvoiceDTO, companyservice); |
|
|
|
@ -511,7 +508,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice incomeService = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
IncomeCountInfoDTO incomeGetInvoiceDTO = requestBody.toJavaObject(IncomeCountInfoDTO.class); |
|
|
|
|
AjaxResult result = incomeService.getCountInfo(incomeGetInvoiceDTO, companyservice); |
|
|
|
@ -551,7 +548,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice incomeService = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
IncomeApplyCountDTO incomeGetInvoiceDTO = requestBody.toJavaObject(IncomeApplyCountDTO.class); |
|
|
|
|
AjaxResult result = incomeService.applyCount(incomeGetInvoiceDTO, companyservice); |
|
|
|
@ -590,7 +587,7 @@ public class InvoiceAuthController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获得请求实例,并且进行扣费
|
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()) + "_auth"; |
|
|
|
|
String serviceKey = serviceManageService.getCompanyServiceSupplier(SERVICE_KEY, companyservice.getCompanyid()); |
|
|
|
|
IAuthInvoice incomeService = collectServiceFactory.getServiceAuth(serviceKey); |
|
|
|
|
IncomeApplyCountResultDTO incomeGetInvoiceDTO = requestBody.toJavaObject(IncomeApplyCountResultDTO.class); |
|
|
|
|
AjaxResult result = incomeService.applyCountResult(incomeGetInvoiceDTO, companyservice); |
|
|
|
|