|
|
@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.convert.Convert; |
|
|
|
import cn.hutool.core.convert.Convert; |
|
|
|
import cn.hutool.core.io.FileUtil; |
|
|
|
import cn.hutool.core.io.FileUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.ReUtil; |
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.http.HttpUtil; |
|
|
|
import cn.hutool.http.HttpUtil; |
|
|
|
import cn.hutool.json.JSON; |
|
|
|
import cn.hutool.json.JSON; |
|
|
@ -31,13 +30,8 @@ import com.jianshui.invoice.domain.dto.api.aisino.console.vehicle.TaxEquipmentIn |
|
|
|
import com.jianshui.invoice.domain.dto.api.aisino.console.vehicle.VehicleInvoiceExpBo; |
|
|
|
import com.jianshui.invoice.domain.dto.api.aisino.console.vehicle.VehicleInvoiceExpBo; |
|
|
|
import com.jianshui.invoice.domain.ele.EleNewMessage; |
|
|
|
import com.jianshui.invoice.domain.ele.EleNewMessage; |
|
|
|
import com.jianshui.invoice.domain.vo.api.aisino.console.AisinoConsoleInvoiceAddVO; |
|
|
|
import com.jianshui.invoice.domain.vo.api.aisino.console.AisinoConsoleInvoiceAddVO; |
|
|
|
import com.jianshui.invoice.mapper.BillInfoMapper; |
|
|
|
import com.jianshui.invoice.mapper.*; |
|
|
|
import com.jianshui.invoice.mapper.InvoiceMapper; |
|
|
|
|
|
|
|
import com.jianshui.invoice.mapper.RedinfoMapper; |
|
|
|
|
|
|
|
import com.jianshui.invoice.mapper.SkDyjMapper; |
|
|
|
|
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.task.QueryBackZhongQiTask; |
|
|
|
|
|
|
|
import com.jianshui.invoice.task.QueryInvoiceTask; |
|
|
|
|
|
|
|
import com.jianshui.invoice.utils.BillInfoUtils; |
|
|
|
import com.jianshui.invoice.utils.BillInfoUtils; |
|
|
|
import com.jianshui.invoice.utils.aisino.console.AisinoConsoleUtil; |
|
|
|
import com.jianshui.invoice.utils.aisino.console.AisinoConsoleUtil; |
|
|
|
import com.jianshui.system.domain.CompanyserviceProp; |
|
|
|
import com.jianshui.system.domain.CompanyserviceProp; |
|
|
@ -79,6 +73,8 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private RedinfoMapper redinfoMapper; |
|
|
|
private RedinfoMapper redinfoMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private InvoiceBackMapper invoiceBackMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -337,16 +333,35 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: 2023/9/26 增加主动回调方式,可配置
|
|
|
|
// TODO: 2023/9/26 增加主动回调方式,可配置
|
|
|
|
// TODO: 2023/10/25 回调改成异步的,执行20次,直到获取到结果
|
|
|
|
// TODO: 2023/10/25 回调改成异步的,执行10次,直到获取到结果
|
|
|
|
ICompanyservicePropService companyserviceProp = SpringUtils.getBean(ICompanyservicePropService.class); |
|
|
|
ICompanyservicePropService companyserviceProp = SpringUtils.getBean(ICompanyservicePropService.class); |
|
|
|
CompanyserviceProp secretIdProp = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_callback_url"); |
|
|
|
CompanyserviceProp secretIdProp = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_callback_url"); |
|
|
|
if (BeanUtil.isNotEmpty(secretIdProp) && secretIdProp.getValue() != null && !"".equals(secretIdProp.getValue())) { |
|
|
|
if (BeanUtil.isNotEmpty(secretIdProp) && secretIdProp.getValue() != null && !"".equals(secretIdProp.getValue())) { |
|
|
|
|
|
|
|
|
|
|
|
String callBackUrl = secretIdProp.getValue(); |
|
|
|
String callBackUrl = secretIdProp.getValue(); |
|
|
|
|
|
|
|
|
|
|
|
// 异步回调
|
|
|
|
InvoiceBack queryInvoiceBack = new InvoiceBack(); |
|
|
|
AsyncManager.me().execute(new QueryBackZhongQiTask(callBackUrl,invoice.getId())); |
|
|
|
queryInvoiceBack.setSystemOrderno(billInfo.getSystemOrderno()); |
|
|
|
// callBackAisino(callBackUrl, invoice.getId());
|
|
|
|
List<InvoiceBack> invoiceBackList = invoiceBackMapper.selectInvoiceBackList(queryInvoiceBack); |
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(invoiceBackList)) { |
|
|
|
|
|
|
|
queryInvoiceBack.setIdentity(companyservice.getIdentity()); |
|
|
|
|
|
|
|
queryInvoiceBack.setBackUrl(callBackUrl); |
|
|
|
|
|
|
|
queryInvoiceBack.setStatus("0"); |
|
|
|
|
|
|
|
queryInvoiceBack.setCreateTime(new Date()); |
|
|
|
|
|
|
|
queryInvoiceBack.setSystemOrderno(billInfo.getSystemOrderno()); |
|
|
|
|
|
|
|
queryInvoiceBack.setBackMsg(""); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
queryInvoiceBack = invoiceBackList.get(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 异步回调,失败的交给定时任务
|
|
|
|
|
|
|
|
InvoiceBack finalQueryInvoiceBack = queryInvoiceBack; |
|
|
|
|
|
|
|
AsyncManager.me().execute(new TimerTask() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void run() { |
|
|
|
|
|
|
|
callBackAisino(finalQueryInvoiceBack,callBackUrl, invoice.getId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -365,7 +380,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
* @param callBackUrl |
|
|
|
* @param callBackUrl |
|
|
|
* @param id |
|
|
|
* @param id |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void callBackAisino(String callBackUrl, Long id) { |
|
|
|
private void callBackAisino(InvoiceBack invoiceBack,String callBackUrl, Long id) { |
|
|
|
|
|
|
|
|
|
|
|
if (id == null) { |
|
|
|
if (id == null) { |
|
|
|
log.info("【控制台】发票回调,id为空"); |
|
|
|
log.info("【控制台】发票回调,id为空"); |
|
|
@ -379,12 +394,35 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
log.info("【控制台】发票回调接口,发送数据开始,id={}", id); |
|
|
|
log.info("【控制台】发票回调接口,发送数据开始,id={}", id); |
|
|
|
String result = HttpUtil.post(callBackUrl, JSONUtil.toJsonStr(invoice)); |
|
|
|
String result = HttpUtil.post(callBackUrl, JSONUtil.toJsonStr(invoice)); |
|
|
|
|
|
|
|
log.info("【控制台】发票回调接口,发送数据结束,id={},接口返回信息={}", id, result); |
|
|
|
|
|
|
|
|
|
|
|
log.info("【控制台】发票回调接口,发送数据结束,id={},接口返回信息={}", id, JSONUtil.toJsonStr(invoice)); |
|
|
|
cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(result); |
|
|
|
|
|
|
|
if(jsonObject != null){ |
|
|
|
|
|
|
|
String status = jsonObject.get("status") != null ? jsonObject.get("status").toString():""; |
|
|
|
|
|
|
|
String message = jsonObject.get("message")!= null ? jsonObject.get("message").toString():""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if("0000".equals(status)){ |
|
|
|
|
|
|
|
invoiceBack.setStatus("1"); |
|
|
|
|
|
|
|
invoiceBack.setBackMsg("发票信息未查询到"); |
|
|
|
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
|
|
|
}else if("9999".equals(status)){ |
|
|
|
|
|
|
|
invoiceBack.setStatus("3"); |
|
|
|
|
|
|
|
invoiceBack.setBackMsg(message); |
|
|
|
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
invoiceBack.setStatus("2"); |
|
|
|
|
|
|
|
invoiceBack.setBackMsg(status+message); |
|
|
|
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.info("【控制台】发票回调接口,发送数据异常,id={}", id); |
|
|
|
log.info("【控制台】发票回调接口,发送数据异常,id={}", id); |
|
|
|
|
|
|
|
invoiceBack.setStatus("2"); |
|
|
|
|
|
|
|
invoiceBack.setBackMsg("发送数据异常!"); |
|
|
|
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
throw new RuntimeException(e); |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -747,7 +785,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
//发起请求
|
|
|
|
//发起请求
|
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequestXML(AisinoConsoleConstants.RED_UPLOAD,"129", param, companyservice); |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequestXML(AisinoConsoleConstants.RED_UPLOAD, "129", param, companyservice); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("【销项发票】【总部控制台接口】【发票作废】发票请求异常,请求报文{},销方信息{}", "", JSONObject.toJSONString(companyservice)); |
|
|
|
log.error("【销项发票】【总部控制台接口】【发票作废】发票请求异常,请求报文{},销方信息{}", "", JSONObject.toJSONString(companyservice)); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -793,7 +831,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<CompanyserviceDetail> companyserviceDetailList = companyservice.getCompanyserviceDetailList(); |
|
|
|
List<CompanyserviceDetail> companyserviceDetailList = companyservice.getCompanyserviceDetailList(); |
|
|
|
if(CollectionUtils.isEmpty(companyserviceDetailList) || StrUtil.isEmpty(companyserviceDetailList.get(0).getGoldenTaxDiskNo())){ |
|
|
|
if (CollectionUtils.isEmpty(companyserviceDetailList) || StrUtil.isEmpty(companyserviceDetailList.get(0).getGoldenTaxDiskNo())) { |
|
|
|
throw new JianshuiServiceException("金税盘编号未配置,请联系管理员!"); |
|
|
|
throw new JianshuiServiceException("金税盘编号未配置,请联系管理员!"); |
|
|
|
} |
|
|
|
} |
|
|
|
String goldenTaxDiskNo = companyserviceDetailList.get(0).getGoldenTaxDiskNo(); |
|
|
|
String goldenTaxDiskNo = companyserviceDetailList.get(0).getGoldenTaxDiskNo(); |
|
|
@ -811,7 +849,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
// TODO: 2023/10/25 这里改为空的属性也传
|
|
|
|
// TODO: 2023/10/25 这里改为空的属性也传
|
|
|
|
|
|
|
|
|
|
|
|
String param = JSONUtil.toXmlStr(JSONUtil.parse(downloadDTO)); |
|
|
|
String param = JSONUtil.toXmlStr(JSONUtil.parse(downloadDTO)); |
|
|
|
|
|
|
|
|
|
|
|
param = "<?xml version=\"1.0\" encoding=\"GBK\"?>\n" + |
|
|
|
param = "<?xml version=\"1.0\" encoding=\"GBK\"?>\n" + |
|
|
|
"<FPXT>\n" + |
|
|
|
"<FPXT>\n" + |
|
|
|
" <INPUT>\n" + param + "</INPUT>\n" + |
|
|
|
" <INPUT>\n" + param + "</INPUT>\n" + |
|
|
@ -850,7 +888,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
//发起请求
|
|
|
|
//发起请求
|
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequestXML(AisinoConsoleConstants.RED_DOWLOAD, "0201",param, companyservice); |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequestXML(AisinoConsoleConstants.RED_DOWLOAD, "0201", param, companyservice); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("【销项发票】【总部控制台接口】【发票作废】发票请求异常,请求报文{},销方信息{}", "", JSONObject.toJSONString(companyservice)); |
|
|
|
log.error("【销项发票】【总部控制台接口】【发票作废】发票请求异常,请求报文{},销方信息{}", "", JSONObject.toJSONString(companyservice)); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -1031,12 +1069,12 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
* "KSRQ":"", |
|
|
|
* "KSRQ":"", |
|
|
|
* "StrGuid":"" |
|
|
|
* "StrGuid":"" |
|
|
|
* } |
|
|
|
* } |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 发起请求
|
|
|
|
// 发起请求
|
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
|
|
|
|
|
|
|
|
JSON json = JSONUtil.parse(decryptResult); |
|
|
|
JSON json = JSONUtil.parse(decryptResult); |
|
|
|
try { |
|
|
|
try { |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequest(AisinoConsoleConstants.VEHIC, json, companyservice); |
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequest(AisinoConsoleConstants.VEHIC, json, companyservice); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
@ -1055,20 +1093,20 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
String retcode = resultJSON.get("retcode") != null ? resultJSON.get("retcode").toString() : ""; |
|
|
|
String retcode = resultJSON.get("retcode") != null ? resultJSON.get("retcode").toString() : ""; |
|
|
|
String retmsg = resultJSON.get("retmsg") != null ? resultJSON.get("retmsg").toString() : ""; |
|
|
|
String retmsg = resultJSON.get("retmsg") != null ? resultJSON.get("retmsg").toString() : ""; |
|
|
|
|
|
|
|
|
|
|
|
if("0".equals(retcode)){ |
|
|
|
if ("0".equals(retcode)) { |
|
|
|
|
|
|
|
|
|
|
|
// TODO: 2023/10/25 机动车加密数据导出推送
|
|
|
|
// TODO: 2023/10/25 机动车加密数据导出推送
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 推送逻辑: |
|
|
|
* 推送逻辑: |
|
|
|
* 调用加密接口,调用成功后推送,推送中间状态断了停止推送 |
|
|
|
* 调用加密接口,调用成功后推送,推送中间状态断了停止推送 |
|
|
|
* 否则获取到推送结果之后停止推送 |
|
|
|
* 否则获取到推送结果之后停止推送 |
|
|
|
* 需要个手动重推的操作。 |
|
|
|
* 需要个手动重推的操作。 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
ICompanyservicePropService companyserviceProp = SpringUtils.getBean(ICompanyservicePropService.class); |
|
|
|
ICompanyservicePropService companyserviceProp = SpringUtils.getBean(ICompanyservicePropService.class); |
|
|
|
CompanyserviceProp secretIdProp = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_nginx_url"); |
|
|
|
CompanyserviceProp secretIdProp = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_nginx_url"); |
|
|
|
|
|
|
|
|
|
|
|
if(secretIdProp == null || StrUtil.isEmpty(secretIdProp.getValue())){ |
|
|
|
if (secretIdProp == null || StrUtil.isEmpty(secretIdProp.getValue())) { |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】推送nginx地址未配置!aisino_nginx_url"); |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】推送nginx地址未配置!aisino_nginx_url"); |
|
|
|
return new HXResponse("推送中间件地址未配置!"); |
|
|
|
return new HXResponse("推送中间件地址未配置!"); |
|
|
|
} |
|
|
|
} |
|
|
@ -1076,7 +1114,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
String downloadUrl = secretIdProp.getValue(); |
|
|
|
String downloadUrl = secretIdProp.getValue(); |
|
|
|
|
|
|
|
|
|
|
|
cn.hutool.json.JSONObject queryDto = JSONUtil.parseObj(json); |
|
|
|
cn.hutool.json.JSONObject queryDto = JSONUtil.parseObj(json); |
|
|
|
if(queryDto == null){ |
|
|
|
if (queryDto == null) { |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】查询条件未获取到!"); |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】查询条件未获取到!"); |
|
|
|
return new HXResponse("查询条件未获取到!"); |
|
|
|
return new HXResponse("查询条件未获取到!"); |
|
|
|
} |
|
|
|
} |
|
|
@ -1085,12 +1123,12 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
try { |
|
|
|
try { |
|
|
|
indexPage = HttpUtil.get(downloadUrl); |
|
|
|
indexPage = HttpUtil.get(downloadUrl); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】{}",e); |
|
|
|
log.info("【销项发票】【总部控制台发票-机动车加密】{}", e); |
|
|
|
return new HXResponse("中间件读取失败!"); |
|
|
|
return new HXResponse("中间件读取失败!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String startDate = queryDto.get("KSRQ") != null ? queryDto.get("KSRQ").toString().replace("-",".") : ""; |
|
|
|
String startDate = queryDto.get("KSRQ") != null ? queryDto.get("KSRQ").toString().replace("-", ".") : ""; |
|
|
|
String endDate = queryDto.get("JSRQ") != null ? queryDto.get("JSRQ").toString().replace("-",".") : ""; |
|
|
|
String endDate = queryDto.get("JSRQ") != null ? queryDto.get("JSRQ").toString().replace("-", ".") : ""; |
|
|
|
|
|
|
|
|
|
|
|
// 构建要匹配的日期范围字符串
|
|
|
|
// 构建要匹配的日期范围字符串
|
|
|
|
String dateRange = startDate + "-" + endDate; |
|
|
|
String dateRange = startDate + "-" + endDate; |
|
|
@ -1104,7 +1142,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
// 遍历<a>标签,提取href属性内容
|
|
|
|
// 遍历<a>标签,提取href属性内容
|
|
|
|
for (Element aTag : aTags) { |
|
|
|
for (Element aTag : aTags) { |
|
|
|
href = aTag.attr("href"); |
|
|
|
href = aTag.attr("href"); |
|
|
|
log.info("读取到的机动车加密文件名为"+href); |
|
|
|
log.info("读取到的机动车加密文件名为" + href); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1119,10 +1157,10 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
paramMap.put("zdr", companyservice.getCompanyid()); |
|
|
|
paramMap.put("zdr", companyservice.getCompanyid()); |
|
|
|
|
|
|
|
|
|
|
|
CompanyserviceProp pushUrl = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_upload_url"); |
|
|
|
CompanyserviceProp pushUrl = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_upload_url"); |
|
|
|
if(pushUrl == null || StrUtil.isEmpty(pushUrl.getValue())){ |
|
|
|
if (pushUrl == null || StrUtil.isEmpty(pushUrl.getValue())) { |
|
|
|
return new HXResponse("重汽推送机动车地址未设置!"); |
|
|
|
return new HXResponse("重汽推送机动车地址未设置!"); |
|
|
|
} |
|
|
|
} |
|
|
|
String result = HttpUtil.post(pushUrl.getValue(),paramMap); |
|
|
|
String result = HttpUtil.post(pushUrl.getValue(), paramMap); |
|
|
|
|
|
|
|
|
|
|
|
cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(result); |
|
|
|
cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(result); |
|
|
|
|
|
|
|
|
|
|
@ -1130,23 +1168,14 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
String retMsg = jsonObject.get("retMsg") != null ? jsonObject.get("retMsg").toString() : ""; |
|
|
|
String retMsg = jsonObject.get("retMsg") != null ? jsonObject.get("retMsg").toString() : ""; |
|
|
|
|
|
|
|
|
|
|
|
// 重汽返回接口信息
|
|
|
|
// 重汽返回接口信息
|
|
|
|
return new HXResponse(retCode,retMsg); |
|
|
|
return new HXResponse(retCode, retMsg); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
return new HXResponse("9999","导出失败、发票不存在!"); |
|
|
|
return new HXResponse("9999", "导出失败、发票不存在!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public AjaxResult syncStockInfo(Companyservice companyservice) { |
|
|
|
public AjaxResult syncStockInfo(Companyservice companyservice) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
@ -1293,8 +1322,6 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 机动车加密接口(走的大象,重汽用控制台) |
|
|
|
* 机动车加密接口(走的大象,重汽用控制台) |
|
|
|
*//*
|
|
|
|
*//*
|
|
|
@ -1429,6 +1456,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 调用基础服务获取税控设备 |
|
|
|
* 调用基础服务获取税控设备 |
|
|
|
|
|
|
|
* |
|
|
|
* @param nsrsbh |
|
|
|
* @param nsrsbh |
|
|
|
* @param entId |
|
|
|
* @param entId |
|
|
|
* @return |
|
|
|
* @return |
|
|
|