feature: aisino加密类处理

master
dongxiaoke 1 year ago
parent 7ab576c726
commit 01006cfdac
  1. 2
      jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceController.java
  2. 5
      jianshui-common/src/main/java/com/jianshui/common/utils/encrypt/JianshuiInvoiceDecryptUtil.java
  3. 3
      jianshui-common/src/main/java/com/jianshui/common/utils/encrypt/JianshuiInvoiceEncryptUtil.java
  4. 4
      jianshui-income/src/main/java/com/jianshui/income/service/impl/adapter/request/AisinoIncomeRequestAdapterImpl.java
  5. 4
      jianshui-income/src/main/java/com/jianshui/income/service/impl/adapter/request/ElephentIncomeAuthRequestAdapterImpl.java
  6. 6
      jianshui-income/src/main/java/com/jianshui/income/service/impl/adapter/response/AisinoIncomeResponseAdapterImpl.java
  7. 4
      jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/adapter/request/AisinoIncomeRequestAdapterImpl.java
  8. 9
      jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/adapter/request/AisinoInvoiceRequestAdapterImpl.java
  9. 6
      jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/adapter/request/Nuonuo2InvoiceRequestAdapterImpl.java
  10. 35
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/IncomeTest.java
  11. 60
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/InvoiceTest.java
  12. 22
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/JcskTest.java
  13. 52
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/QdEleInvoiceTest.java

@ -1956,7 +1956,7 @@ public class InvoiceController {
rawJson.put(k, map.get(k)[0]); rawJson.put(k, map.get(k)[0]);
} }
if (StringUtils.isEmpty(rawJson)) { if (StringUtils.isEmpty(rawJson)) {
log.info("[重汽批量开票接口]未获取到请求参数!identity={},e={}", identity); log.info("[重汽批量开票接口]未获取到请求参数!identity={}", identity);
return; return;
} }
String order = rawJson.getString("order"); String order = rawJson.getString("order");

@ -11,19 +11,16 @@ import javax.crypto.Cipher;
import javax.crypto.spec.GCMParameterSpec; import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.SecureRandom;
import java.util.Arrays;
/** /**
* 功能描述 * 功能描述
* 加密常用类 * 加密常用类
*/ */
public class AisinoInvoiceDecryptUtil { public class JianshuiInvoiceDecryptUtil {
private static final String ALGORITHM = "AES/GCM/NoPadding"; private static final String ALGORITHM = "AES/GCM/NoPadding";
private static final int KEY_SIZE = 128; // 密钥长度为128位 private static final int KEY_SIZE = 128; // 密钥长度为128位

@ -14,13 +14,12 @@ import java.io.IOException;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.SecureRandom;
/** /**
* 功能描述 * 功能描述
* 加密常用类 * 加密常用类
*/ */
public class AisinoInvoiceEncryptUtil { public class JianshuiInvoiceEncryptUtil {
private static final String ALGORITHM = "AES/GCM/NoPadding"; private static final String ALGORITHM = "AES/GCM/NoPadding";
private static final int IV_LENGTH = 12; // 初始化向量长度为12字节(96位) private static final int IV_LENGTH = 12; // 初始化向量长度为12字节(96位)

@ -5,7 +5,7 @@ import com.jianshui.common.core.domain.entity.Companyservice;
import com.jianshui.common.enums.ErrorCode; import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.income.service.IIncomeRequestService; import com.jianshui.income.service.IIncomeRequestService;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@ -89,7 +89,7 @@ public class AisinoIncomeRequestAdapterImpl implements IIncomeRequestService {
// 平台解密 // 平台解密
try { try {
order = AisinoInvoiceDecryptUtil.decrypt(order, JKey); order = JianshuiInvoiceDecryptUtil.decrypt(order, JKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "income"); throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "income");

@ -5,7 +5,7 @@ import com.jianshui.common.core.domain.entity.Companyservice;
import com.jianshui.common.enums.ErrorCode; import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.income.service.IIncomeRequestService; import com.jianshui.income.service.IIncomeRequestService;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@ -71,7 +71,7 @@ public class ElephentIncomeAuthRequestAdapterImpl implements IIncomeRequestServi
// 平台解密 // 平台解密
try { try {
order = AisinoInvoiceDecryptUtil.decrypt(order, JKey); order = JianshuiInvoiceDecryptUtil.decrypt(order, JKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "income"); throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "income");

@ -3,20 +3,14 @@ package com.jianshui.income.service.impl.adapter.response;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jianshui.common.core.domain.AjaxResult; import com.jianshui.common.core.domain.AjaxResult;
import com.jianshui.common.core.domain.entity.Companyservice; import com.jianshui.common.core.domain.entity.Companyservice;
import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil;
import com.jianshui.common.utils.http.HttpHelper;
import com.jianshui.income.service.IIncomeRequestService;
import com.jianshui.income.service.IIncomeResponseService; import com.jianshui.income.service.IIncomeResponseService;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.servlet.ServletRequest;
/** /**
* @Description * @Description
* @Author 巩权林 * @Author 巩权林

@ -5,7 +5,7 @@ import com.jianshui.common.core.domain.entity.Companyservice;
import com.jianshui.common.enums.ErrorCode; import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.invoiceall.service.IInvoiceAllRequestService; import com.jianshui.invoiceall.service.IInvoiceAllRequestService;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@ -88,7 +88,7 @@ public class AisinoIncomeRequestAdapterImpl implements IInvoiceAllRequestService
// 平台解密 // 平台解密
try { try {
order = AisinoInvoiceDecryptUtil.decrypt(order, JKey); order = JianshuiInvoiceDecryptUtil.decrypt(order, JKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoiceall"); throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoiceall");

@ -1,8 +1,6 @@
package com.jianshui.invoice.service.impl.adapter.request; package com.jianshui.invoice.service.impl.adapter.request;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONArray; import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -11,7 +9,7 @@ import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.IdcardUtils; import com.jianshui.common.utils.IdcardUtils;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.invoice.domain.BillDetail; import com.jianshui.invoice.domain.BillDetail;
import com.jianshui.invoice.domain.BillInfo; import com.jianshui.invoice.domain.BillInfo;
import com.jianshui.invoice.domain.Redinfo; import com.jianshui.invoice.domain.Redinfo;
@ -22,7 +20,6 @@ import com.jianshui.invoice.domain.dto.adapter.request.aisino_jn.HxBillInfoDTO;
import com.jianshui.invoice.domain.dto.adapter.request.aisino_jn.HxRedInfoDTO; import com.jianshui.invoice.domain.dto.adapter.request.aisino_jn.HxRedInfoDTO;
import com.jianshui.invoice.domain.dto.adapter.request.aisino_jn.HxRedInfoDetailsDTO; import com.jianshui.invoice.domain.dto.adapter.request.aisino_jn.HxRedInfoDetailsDTO;
import com.jianshui.invoice.service.IInvoiceRequestService; import com.jianshui.invoice.service.IInvoiceRequestService;
import com.jianshui.invoice.utils.elephant.ElephantUtils;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
@ -107,7 +104,7 @@ public class AisinoInvoiceRequestAdapterImpl implements IInvoiceRequestService {
// 平台解密 // 平台解密
try { try {
// TODO: 2023/9/20 // TODO: 2023/9/20
order = AisinoInvoiceDecryptUtil.decrypt(order, JKey); order = JianshuiInvoiceDecryptUtil.decrypt(order, JKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoice"); throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoice");
@ -369,7 +366,7 @@ public class AisinoInvoiceRequestAdapterImpl implements IInvoiceRequestService {
// 平台解密 // 平台解密
try { try {
// TODO: 2023/9/20 // TODO: 2023/9/20
order = AisinoInvoiceDecryptUtil.decrypt(order, JKey); order = JianshuiInvoiceDecryptUtil.decrypt(order, JKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoice"); throw new JianshuiParamErrorException(ErrorCode.DECRYPT_ERROR, companyservice, "invoice");

@ -1,17 +1,13 @@
package com.jianshui.invoice.service.impl.adapter.request; package com.jianshui.invoice.service.impl.adapter.request;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jianshui.common.core.domain.AjaxResult;
import com.jianshui.common.core.domain.entity.Companyservice; import com.jianshui.common.core.domain.entity.Companyservice;
import com.jianshui.common.enums.ErrorCode; import com.jianshui.common.enums.ErrorCode;
import com.jianshui.common.exception.jianshui.JianshuiParamErrorException; import com.jianshui.common.exception.jianshui.JianshuiParamErrorException;
import com.jianshui.common.utils.DateUtils; import com.jianshui.common.utils.DateUtils;
import com.jianshui.common.utils.IdcardUtils; import com.jianshui.common.utils.IdcardUtils;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.TimeUtil;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil;
import com.jianshui.common.utils.http.HttpHelper; import com.jianshui.common.utils.http.HttpHelper;
import com.jianshui.invoice.domain.BillDetail; import com.jianshui.invoice.domain.BillDetail;
import com.jianshui.invoice.domain.BillInfo; import com.jianshui.invoice.domain.BillInfo;
@ -22,12 +18,10 @@ import com.jianshui.invoice.domain.dto.adapter.request.nuonuo2.*;
import com.jianshui.invoice.service.IInvoiceRequestService; import com.jianshui.invoice.service.IInvoiceRequestService;
import com.jianshui.system.service.ICompanyserviceService; import com.jianshui.system.service.ICompanyserviceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import nuonuo.open.sdk.NNOpenSDK;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.*; import java.util.*;

@ -3,9 +3,8 @@ package com.jianshui.invoice.utils;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.jianshui.common.utils.DateUtils;
import com.jianshui.common.utils.StringUtils; import com.jianshui.common.utils.StringUtils;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.common.utils.uuid.UUID; import com.jianshui.common.utils.uuid.UUID;
import java.util.*; import java.util.*;
@ -40,7 +39,7 @@ public class IncomeTest {
"}\n"; "}\n";
// String order = "{\"jym\":\"165330\",\"fpje\":\"83.07\",\"fpdm\":\"011002100511\",\"kprq\":\"20220209\",\"fphm\":\"41985485\",\"fpzl\":\"10\",\"taxNo\":\"91370100664851254J\"}"; // String order = "{\"jym\":\"165330\",\"fpje\":\"83.07\",\"fpdm\":\"011002100511\",\"kprq\":\"20220209\",\"fphm\":\"41985485\",\"fpzl\":\"10\",\"taxNo\":\"91370100664851254J\"}";
// String order = "{\"jym\":\"356607\",\"fpje\":\"259.23\",\"fpdm\":\"011002000711\",\"kprq\":\"20210111\",\"fphm\":\"66914035\",\"fpzl\":\"01\",\"taxNo\":\"91370102MA3UD2FG21\" }"; // String order = "{\"jym\":\"356607\",\"fpje\":\"259.23\",\"fpdm\":\"011002000711\",\"kprq\":\"20210111\",\"fphm\":\"66914035\",\"fpzl\":\"01\",\"taxNo\":\"91370102MA3UD2FG21\" }";
String m = AisinoInvoiceDecryptUtil.encrypt(order, key); String m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : " + order); System.out.println("json : " + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -48,14 +47,14 @@ public class IncomeTest {
System.out.println("-------------------批量发票查验-----------------------------"); System.out.println("-------------------批量发票查验-----------------------------");
order = "{\"invoiceList\":[{\"fpdm\":\"3200211130\",\"fphm\":\"49523142\",\"fpje\":\"986359.73\",\"fpzl\":\"01\",\"kprq\":\"20210712\"}],\"pch\":\"761651651651651515151568438476\",\"taxNo\":\"91370102MA3UD2FG21\"}"; order = "{\"invoiceList\":[{\"fpdm\":\"3200211130\",\"fphm\":\"49523142\",\"fpje\":\"986359.73\",\"fpzl\":\"01\",\"kprq\":\"20210712\"}],\"pch\":\"761651651651651515151568438476\",\"taxNo\":\"91370102MA3UD2FG21\"}";
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------批量发票查验结果查询-----------------------------"); System.out.println("-------------------批量发票查验结果查询-----------------------------");
order = "{\"pch\":\"761651651651651515151568438476\",\"taxNo\":\"91370102MA3UD2FG21\"}"; order = "{\"pch\":\"761651651651651515151568438476\",\"taxNo\":\"91370102MA3UD2FG21\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -64,7 +63,7 @@ public class IncomeTest {
System.out.println("-------------------企业档案查询-----------------------------"); System.out.println("-------------------企业档案查询-----------------------------");
order = "{\"SBH\":\"1403016L1NN5336\",\"taxNo\":\"1403016L1NN5336\"}"; order = "{\"SBH\":\"1403016L1NN5336\",\"taxNo\":\"1403016L1NN5336\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -99,7 +98,7 @@ public class IncomeTest {
order = JSONUtil.toJsonStr(map); order = JSONUtil.toJsonStr(map);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : " + order); System.out.println("json : " + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -107,7 +106,7 @@ public class IncomeTest {
System.out.println("-------------------获取认证结果-----------------------------"); System.out.println("-------------------获取认证结果-----------------------------");
// order = "{\"PCH\":\"3eb6645e2fc84b8384ac2db8c3fd78f7\",\"taxNo\":\"9111122223333CKFPT\"}"; // order = "{\"PCH\":\"3eb6645e2fc84b8384ac2db8c3fd78f7\",\"taxNo\":\"9111122223333CKFPT\"}";
order = "{\"PCH\":\"20220020021312341\",\"taxNo\":\"9111122223333CKFPT\"}"; order = "{\"PCH\":\"20220020021312341\",\"taxNo\":\"9111122223333CKFPT\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -118,7 +117,7 @@ public class IncomeTest {
order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\""+ "67074fed71cc42da8fc12bdcd2111s99" +"\"," + order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\""+ "67074fed71cc42da8fc12bdcd2111s99" +"\"," +
"\"QRBZ\":\"1\",\"TJSJ\":\"202209\",\"RZSKSSQ\":\"202209\",\"QRMM\":\"123456\",\"taxNo\":\"9111122223333CKFPT\"}"; "\"QRBZ\":\"1\",\"TJSJ\":\"202209\",\"RZSKSSQ\":\"202209\",\"QRMM\":\"123456\",\"taxNo\":\"9111122223333CKFPT\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -127,7 +126,7 @@ public class IncomeTest {
order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\"2d92821a9dfc4f1aaa744bcbd1696ebd\"," + order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\"2d92821a9dfc4f1aaa744bcbd1696ebd\"," +
"\"QRBZ\":\"0\",\"TJSJ\":\"202209\",\"taxNo\":\"9111122223333CKFPT\"}"; "\"QRBZ\":\"0\",\"TJSJ\":\"202209\",\"taxNo\":\"9111122223333CKFPT\"}";
order = "{\"PCH\":\"67074fed71cc42da8fc12bdcd2111s99\",\"TJSJ\":\"202209\",\"taxNo\":\"9111122223333CKFPT\",\"GMFSBH\":\"9111122223333CKFPT\",\"QRBZ\":\"1\"}"; order = "{\"PCH\":\"67074fed71cc42da8fc12bdcd2111s99\",\"TJSJ\":\"202209\",\"taxNo\":\"9111122223333CKFPT\",\"GMFSBH\":\"9111122223333CKFPT\",\"QRBZ\":\"1\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -135,21 +134,21 @@ public class IncomeTest {
System.out.println("-------------------状态采集-----------------------------"); System.out.println("-------------------状态采集-----------------------------");
order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\"0827f998cdfd40b0a5626150520b4dea\"," + order = "{\"GMFSBH\":\"9111122223333CKFPT\",\"PCH\":\"0827f998cdfd40b0a5626150520b4dea\"," +
"\"ZTBGKSRQ\":\"20190101010120\",\"ZTBGJSRQ\":\"20191001010120\",\"ZTBZ\":\"1\",\"KSHS\":\"1\",\"taxNo\":\"9111122223333CKFPT\"}"; "\"ZTBGKSRQ\":\"20190101010120\",\"ZTBGJSRQ\":\"20191001010120\",\"ZTBZ\":\"1\",\"KSHS\":\"1\",\"taxNo\":\"9111122223333CKFPT\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------设置密码-----------------------------"); System.out.println("-------------------设置密码-----------------------------");
order = "{\"SBH\":\"9111122223333CKFPT\",\"YWMM\":\"123456\",\"NEWYWMM\":\"123456\",\"taxNo\":\"9111122223333CKFPT\"}"; order = "{\"SBH\":\"9111122223333CKFPT\",\"YWMM\":\"123456\",\"NEWYWMM\":\"123456\",\"taxNo\":\"9111122223333CKFPT\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------重置密码-----------------------------"); System.out.println("-------------------重置密码-----------------------------");
order = "{\"SBH\":\"9111122223333CKFPT\",\"taxNo\":\"9111122223333CKFPT\"}"; order = "{\"SBH\":\"9111122223333CKFPT\",\"taxNo\":\"9111122223333CKFPT\"}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -169,7 +168,7 @@ public class IncomeTest {
" \"FHHS\": \"10\",\n" + // 当该参数有值时,接口按照参数返回发票条数,如果没值时,接口按照默认值返回发票条数 " \"FHHS\": \"10\",\n" + // 当该参数有值时,接口按照参数返回发票条数,如果没值时,接口按照默认值返回发票条数
" \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号 " \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -188,7 +187,7 @@ public class IncomeTest {
" \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号 " \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -199,7 +198,7 @@ public class IncomeTest {
" \"RZSKSSQ\": \"202209\",\n" + " \"RZSKSSQ\": \"202209\",\n" +
" \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号 " \"taxNo\": \"9111122223333CKFPT\"\n" + // 测试税号
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -213,7 +212,7 @@ public class IncomeTest {
" \"RZSKSSQ\": \"202209\",\n" + " \"RZSKSSQ\": \"202209\",\n" +
" \"taxNo\": \"9111122223333CKFPT\"\n" + " \"taxNo\": \"9111122223333CKFPT\"\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -225,7 +224,7 @@ public class IncomeTest {
" \"GMFSBH\": \"9111122223333CKFPT\",\n" + " \"GMFSBH\": \"9111122223333CKFPT\",\n" +
" \"taxNo\": \"9111122223333CKFPT\"\n" + " \"taxNo\": \"9111122223333CKFPT\"\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("json : \n" + order); System.out.println("json : \n" + order);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");

@ -2,13 +2,7 @@ package com.jianshui.invoice.utils;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
import com.jianshui.common.utils.encrypt.AisinoInvoiceEncryptUtil;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import java.security.SecureRandom;
/** /**
* @Description * @Description
@ -362,7 +356,7 @@ public class InvoiceTest {
System.out.println(order); System.out.println(order);
String m = AisinoInvoiceDecryptUtil.encrypt(order, key); String m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------发票开具-----------------------------"); System.out.println("-------------------发票开具-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -371,12 +365,12 @@ public class InvoiceTest {
System.out.println(query); System.out.println(query);
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------发票查询(订单号)-----------------------------"); System.out.println("-------------------发票查询(订单号)-----------------------------");
query = "{\"identity\":\"1200\",\"orderno\":[ '00000000005223210916']}"; query = "{\"identity\":\"1200\",\"orderno\":[ '00000000005223210916']}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -387,7 +381,7 @@ public class InvoiceTest {
" \"fphm\": \"66198156\",\n" + " \"fphm\": \"66198156\",\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -398,7 +392,7 @@ public class InvoiceTest {
" \"sellerTaxnum\": \"110101MYJ2GPQQ4\"\n" + " \"sellerTaxnum\": \"110101MYJ2GPQQ4\"\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -408,7 +402,7 @@ public class InvoiceTest {
" \"dyjmc\": \"\"" + " \"dyjmc\": \"\"" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -435,7 +429,7 @@ public class InvoiceTest {
" ]\n" + " ]\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -447,17 +441,17 @@ public class InvoiceTest {
"\"invoiceCode\": \"150000020026\"," + "\"invoiceCode\": \"150000020026\"," +
"\"invoiceNum\": \"94579496\"" + "\"invoiceNum\": \"94579496\"" +
"}]}"; "}]}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
query = ""; query = "";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
order = "{\"identity\":\"1131\",\"order\":{\"buye rname\":\"山东爱信诺\",\"taxnum\":\"124511234993295177\",\"phone\":\"0\",\"address\":\"山东省济南市华信路 10\",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo12345631\",\"invoicedate\":\"2018-10 -31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永 路 138 号 \",\"saletaxnum\":\"339901999999142\",\"kptype\":\"1\",\"message\":\"\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏\",\"checker\":\"林莉苏\",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\" 0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"p\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"\",\"lsl bs\":\"\",\"kce\":\"\"}]}}"; order = "{\"identity\":\"1131\",\"order\":{\"buye rname\":\"山东爱信诺\",\"taxnum\":\"124511234993295177\",\"phone\":\"0\",\"address\":\"山东省济南市华信路 10\",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo12345631\",\"invoicedate\":\"2018-10 -31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永 路 138 号 \",\"saletaxnum\":\"339901999999142\",\"kptype\":\"1\",\"message\":\"\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏\",\"checker\":\"林莉苏\",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\" 0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"p\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"\",\"lsl bs\":\"\",\"kce\":\"\"}]}}";
// order="{\"identity\":\"1132\",\"order\":[{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"334511234993295178\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451234\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]},{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"393511234993295177\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451243\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]}]}"; // order="{\"identity\":\"1132\",\"order\":[{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"334511234993295178\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451234\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]},{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"393511234993295177\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451243\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]}]}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println(m); System.out.println(m);
@ -465,7 +459,7 @@ public class InvoiceTest {
query = "{\"FP\":{\"GMFDZDH\":\"山东省潍坊市奎文区胜利东街4778号中央商务区2号楼301号\",\"XHFSBH\":\"91370703334376454N\",\"QDXMMC\":\"销售货物或者提供应税劳务、服务清单\",\"KPRQ\":\"20230331163347\",\"SGBZ\":\"\",\"XHFDZDH\":\"山东省潍坊市寒亭区白云路9号3号楼1-9 15165614885\",\"KPR\":\"庄莹莹\",\"QDBZ\":0,\"FHR\":\"于艺娇\",\"KPLX\":0,\"FPMX\":[{\"XMMC\":\"*设计服务*物料制作费\",\"ZXBM\":\"\",\"DJ\":\"128.712871\",\"ZZSTSGL\":\"\",\"KCE\":\"\",\"SPBM\":\"3040301990000000000\",\"SPSL\":\"1\",\"GGXH\":\"\",\"SE\":\"1.29\",\"DW\":\"批\",\"YHZCBS\":\"0\",\"SL\":\"0.01\",\"JE\":\"128.71\",\"FPHXZ\":0}],\"XHFMC\":\"山东达飞文化传播有限公司\",\"XHFYHZH\":\"潍坊农村商业银行股份有限公司寒亭支行 9070107120142050010911\",\"BZ\":\"\",\"EWM\":\"01,10,037002000311,66223914,128.71,20230331,05834122603484774628,2C6E,\",\"HJJE\":\"128.71\",\"FWM\":\"03-17-*>>1/062*89538-9/2265>975>20477<-/2-149-+4503*/6+3-/<>2+>90523-8><<7*8545668<276-503+9150181/-194>21</587*\",\"GMFYHZH\":\"中信银行潍坊分行8110601012700778796\",\"JYM\":\"05834122603484774628\",\"QZID\":\"4169455300053b94000000040003fb18\",\"JSHJ\":\"130.00\",\"BMBBBH\":\"48.0\",\"YFPDM\":\"\",\"FPHM\":\"66223914\",\"JQBH\":\"539902787121\",\"YFPHM\":\"\",\"FPDM\":\"037002000311\",\"GMFYX\":\"\",\"HJSE\":\"1.29\",\"GMFMC\":\"潍坊圣希门诊部有限公司\",\"MBDM\":\"3700\",\"SKR\":\"张海英\",\"GMFSJ\":\"\",\"GMFSBH\":\"91370700MA3MNWGFXD\",\"DKBZ\":0}}"; query = "{\"FP\":{\"GMFDZDH\":\"山东省潍坊市奎文区胜利东街4778号中央商务区2号楼301号\",\"XHFSBH\":\"91370703334376454N\",\"QDXMMC\":\"销售货物或者提供应税劳务、服务清单\",\"KPRQ\":\"20230331163347\",\"SGBZ\":\"\",\"XHFDZDH\":\"山东省潍坊市寒亭区白云路9号3号楼1-9 15165614885\",\"KPR\":\"庄莹莹\",\"QDBZ\":0,\"FHR\":\"于艺娇\",\"KPLX\":0,\"FPMX\":[{\"XMMC\":\"*设计服务*物料制作费\",\"ZXBM\":\"\",\"DJ\":\"128.712871\",\"ZZSTSGL\":\"\",\"KCE\":\"\",\"SPBM\":\"3040301990000000000\",\"SPSL\":\"1\",\"GGXH\":\"\",\"SE\":\"1.29\",\"DW\":\"批\",\"YHZCBS\":\"0\",\"SL\":\"0.01\",\"JE\":\"128.71\",\"FPHXZ\":0}],\"XHFMC\":\"山东达飞文化传播有限公司\",\"XHFYHZH\":\"潍坊农村商业银行股份有限公司寒亭支行 9070107120142050010911\",\"BZ\":\"\",\"EWM\":\"01,10,037002000311,66223914,128.71,20230331,05834122603484774628,2C6E,\",\"HJJE\":\"128.71\",\"FWM\":\"03-17-*>>1/062*89538-9/2265>975>20477<-/2-149-+4503*/6+3-/<>2+>90523-8><<7*8545668<276-503+9150181/-194>21</587*\",\"GMFYHZH\":\"中信银行潍坊分行8110601012700778796\",\"JYM\":\"05834122603484774628\",\"QZID\":\"4169455300053b94000000040003fb18\",\"JSHJ\":\"130.00\",\"BMBBBH\":\"48.0\",\"YFPDM\":\"\",\"FPHM\":\"66223914\",\"JQBH\":\"539902787121\",\"YFPHM\":\"\",\"FPDM\":\"037002000311\",\"GMFYX\":\"\",\"HJSE\":\"1.29\",\"GMFMC\":\"潍坊圣希门诊部有限公司\",\"MBDM\":\"3700\",\"SKR\":\"张海英\",\"GMFSJ\":\"\",\"GMFSBH\":\"91370700MA3MNWGFXD\",\"DKBZ\":0}}";
// query = "{}"; // query = "{}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("-------------------红字信息表申请-----------------------------"); System.out.println("-------------------红字信息表申请-----------------------------");
// String redapply = "{\n" + // String redapply = "{\n" +
@ -535,29 +529,29 @@ public class InvoiceTest {
" \"fphxz\": \"0\"\n" + " \"fphxz\": \"0\"\n" +
" }]\n" + " }]\n" +
" }"; " }";
String redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); String redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------红字信息表结果查询-----------------------------"); System.out.println("-------------------红字信息表结果查询-----------------------------");
// redapply = "{\"buyerTaxNo\":\"91120116741399389F\",\"invoiceLine\":\"s\"}"; // redapply = "{\"buyerTaxNo\":\"91120116741399389F\",\"invoiceLine\":\"s\"}";
redapply = "{\"SQBXZQQPCH\":\"FSFP001-00000017\",\"NSRSBH\":\"366557441212122\",\"FPLXDM\":\"s\",\"XXBFW\":\"1\",\"billNo\":\"661545026858220629144108\"}"; redapply = "{\"SQBXZQQPCH\":\"FSFP001-00000017\",\"NSRSBH\":\"366557441212122\",\"FPLXDM\":\"s\",\"XXBFW\":\"1\",\"billNo\":\"661545026858220629144108\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------月汇总信息查询-----------------------------"); System.out.println("-------------------月汇总信息查询-----------------------------");
// redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"ssyf\":\"202106\"}"; // redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"ssyf\":\"202106\"}";
redapply = "{\"nsrsbh\":\"92370102MA3LDY427Q\",\"fjh\":\"587001605138\",\"ssyf\":\"202106\"}"; redapply = "{\"nsrsbh\":\"92370102MA3LDY427Q\",\"fjh\":\"587001605138\",\"ssyf\":\"202106\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------红字信息表撤销-----------------------------"); System.out.println("-------------------红字信息表撤销-----------------------------");
redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"xxbbh\":\"321321\"}"; redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"xxbbh\":\"321321\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------库存查询-----------------------------"); System.out.println("-------------------库存查询-----------------------------");
redapply = "{}"; redapply = "{}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------发票专用章生成-----------------------------"); System.out.println("-------------------发票专用章生成-----------------------------");
@ -567,7 +561,7 @@ public class InvoiceTest {
" \"FPZYZHPHM\": \"132123131312312312\",\n" + " \"FPZYZHPHM\": \"132123131312312312\",\n" +
" \"FPZYZSXBM\": \"\"\n" + " \"FPZYZSXBM\": \"\"\n" +
"}"; "}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -685,7 +679,7 @@ public class InvoiceTest {
" }\n" + " }\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------用户登记-----------------------------"); System.out.println("-------------------用户登记-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -794,7 +788,7 @@ public class InvoiceTest {
" \"serviceId\": \"lzfpkj\"\n" + " \"serviceId\": \"lzfpkj\"\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------蓝字发票开具-----------------------------"); System.out.println("-------------------蓝字发票开具-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -810,7 +804,7 @@ public class InvoiceTest {
"}"; "}";
order = "{\"async\":false,\"nsrsbh\":\"51440300502682056B\",\"bsrysfzjhm\":\"450981198703130942\",\"requestId\":\"20230913@ca426816-7a79-416a-8e9b-59f8b4e80982\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"tycxjk\"}"; order = "{\"async\":false,\"nsrsbh\":\"51440300502682056B\",\"bsrysfzjhm\":\"450981198703130942\",\"requestId\":\"20230913@ca426816-7a79-416a-8e9b-59f8b4e80982\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"tycxjk\"}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------通用发票查询-----------------------------"); System.out.println("-------------------通用发票查询-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -825,7 +819,7 @@ public class InvoiceTest {
" \"serviceId\": \"hqrlsbewm\"\n" + " \"serviceId\": \"hqrlsbewm\"\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------获取人脸识别二维码-----------------------------"); System.out.println("-------------------获取人脸识别二维码-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -931,7 +925,7 @@ public class InvoiceTest {
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------红字申请表上传-控制台-----------------------------"); System.out.println("-------------------红字申请表上传-控制台-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -947,7 +941,7 @@ public class InvoiceTest {
order = "{\"identity\":\"1260\",\"SQBXZQQPCH\":\"230324155308\",\"NSRSBH\":\"9137010096471813XB\",\"FPLXDM\":\"s\",\"XXBFW\":0}"; order = "{\"identity\":\"1260\",\"SQBXZQQPCH\":\"230324155308\",\"NSRSBH\":\"9137010096471813XB\",\"FPLXDM\":\"s\",\"XXBFW\":0}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------红字申请表下载-控制台-----------------------------"); System.out.println("-------------------红字申请表下载-控制台-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -1045,7 +1039,7 @@ public class InvoiceTest {
order = "{\"async\":true,\"nsrsbh\":\"51440300502682056B\",\"jsonData\":{\"kprq\":\"20230905000000\",\"wjgs\":\"PDF\",\"fphm\":\"23952000000015068928\"},\"bsrysfzjhm\":\"450981198703130942\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"qdfpwjhq\"}"; order = "{\"async\":true,\"nsrsbh\":\"51440300502682056B\",\"jsonData\":{\"kprq\":\"20230905000000\",\"wjgs\":\"PDF\",\"fphm\":\"23952000000015068928\"},\"bsrysfzjhm\":\"450981198703130942\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"qdfpwjhq\"}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------发票查询-数科-----------------------------"); System.out.println("-------------------发票查询-数科-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -1054,7 +1048,7 @@ public class InvoiceTest {
// order = "Afepz1WAiJb1NSFa55EWPgW7dTwjzt4VVx21H17XyPe+i3I1XABxOmzCJ+DOZGO4iATVfrgz7nDk/w/JB79AVKSBmTMCobqpDEXfSaO9yyanVTvZqndxfCrDuuCLhTTYlEMzUcswaeCaFkI1O9T7ab\\ngQElxC/4QEh6E2IxbTHrZO5seOr4zZdDhG8FUZ1rl0s7tDY15d0="; // order = "Afepz1WAiJb1NSFa55EWPgW7dTwjzt4VVx21H17XyPe+i3I1XABxOmzCJ+DOZGO4iATVfrgz7nDk/w/JB79AVKSBmTMCobqpDEXfSaO9yyanVTvZqndxfCrDuuCLhTTYlEMzUcswaeCaFkI1O9T7ab\\ngQElxC/4QEh6E2IxbTHrZO5seOr4zZdDhG8FUZ1rl0s7tDY15d0=";
m = AisinoInvoiceDecryptUtil.decrypt(m, key); m = JianshuiInvoiceDecryptUtil.decrypt(m, key);
System.out.println(m); System.out.println(m);
order = "iE5UDKqLJhXLWVl8VHJDvAzYjExPttGTOhlduaPoOxLZbF0fCokKJabrFecWbrZTdHkJuUlySh4TcLLsSX0vugooLTJj9MQNXGv3mppg6NIW8gOugMxmzFCK8AKVwPpgzOmbwEIkKoC+YvhCuXGkduIi0ucCPG8eaQ+jnkZz5WKa3P65AMvQGdONLwxzUlyyYnvFgQ6+JoDZQoZUnMlmOvPBorUgq1zY0YRfLZMgNeGC/VdKd1FMSNZ6R3x9xMC4GhI3dgHybolTxy1gEk9bHopNzTvvCRHfYDqOsO+VFk24a2771G3WHOb3wAUeqm/5JecA6ocQAMhn69tZYsQgzUq/wPl42Fkh62HD55OoTNchfsiGNbxrJuagphjoyJlWCFo1sELv31WOTT8Wv02ACR5Djyd3FSRthxmSNVT134bivA7VdKJPlKy7DVwCmJuyFnB2V8BTv+3lwBtNq2Hlc0473n8a+Q6UQDewZrfe/kJUL3QQq76VQfrM7+pZAZVmDKxAjf/3bNL3Ihq6FQKYSpLFNuvXxBKuWMzQ+9i7OV0nPXcqZL5e3E7j4CQEQavZj3r46e8Js5WQ8oPdrUmT6+NsVWoxP0eHZ4XO6jhjNvjLq2bAJGLVU+E4ra6BFLedvP+OcwtlVjmpGXuiJ0fSXNACNLbMyE9mn3vhPpiBP8KY4t8EShawJWkYTD4+HOoM+GxBfwVPBNFN0gwdDCNzyCOQvMsfpUwn6VmU2AgZblSOr2G88RowoTPYEqghgHa53QqAc9HYS4+r6QoUKzZmN/hUP1+3+xVY4C3anVqk7275aSTG4uzAN7+wTIfQTSvDAXTUeyBoyo5skP4a2tz0lnJv/IFvDYuZEa6CQ6ezfYQYfCiGeGzCn6JDX6QjRNr7vReEHby9/f5fZE018RmpG5YvjvRyPNtnPMhWMSIYUKU20iiNuQfqoQ7ZxXttxQDSWW9eijUAEzmQHdDqw47saVW48ROZutUkg7VZ4e+7MLCE5zPnX0FCBv9dzGSnbE4y53ftgYrS4Gz+VZxNZ07GObBbQvulbqqgbsWjrNuK0SZP/V1oLz0LP3Xcnky9M5e06p6QpKtwrla1N1kBrMojNBki6AHIHDU5V4H5j7wqpWVp6inbf+zIAU4y4a+tJjyCmwE1++aMpBja4QvTmcgCBG4M26dlifD927lm/Z5gJYVVK6Drg15laeO7RK9bUVB7HXD6IQAcaNJXGyvbnBm71qRVVELjI/yjQLvCRZzH+gO2l9zJBSX9OnBxSYFK9BVheMSZqVmpws7q1kSY8C/CfP6t7LSbj4VeNmhWpzMoA7FXyjFFR4jfj+PE0tcGf/r4lLaCbnXL4wYPtK0Zhk2gyCcB5SiCAuIAq2TniY+vr/QR00qwU2d8io4KUPkhImHeWrO5fRkF7KS9LHu6z+QC45Lgm3NMVHXQ34uu7choRTj4VZYRjPNOsad0GvCjlemR41hRbiEr9pawBmya7plejcVwYz3M6NvH/nBkNXR2XrHcbOqfaiZ4jTQu66EbwidSQaOBVicG8theiWJAgZW1bO+1yXvWXZNS5fLWgeVrpS7NhbRL0qKQ0p0I03bUcsNF86ng5UwFbPyqWlIRAEJIBlT25z+N24BFE5eVEqOqVTR9EBVAllWDW+TZR9pULdQkCSOiuLRMypCjoE868A+04Bp/PutjCeqiU8LeoIiRxlZvWu1I/hAJNPlL3htCMyPss9rAxYqyOUyJgATE3uIoWxvyYpmdUXlmYCv8XcdCXVkBvv84AleSX4eSamfjMv0uxf044fke2Hd5M+uHPue+wtx8Rzivq3zLvE+xxeTsJPIoboOqU+EgGz/gz5EhNNFAKLt0Awtv2wf9sLep43epuZ0nta9f5tPJZNDPW8opXBW/hL9SFL6W6uuexjnbmI/X2qmXnq0etAgWvd4kY8OrAULgyiOr6lg93mLP0/jVPtbj07eVNxjTdqMTpgisLpiVMnIIbC7g/ayKFlmy/yUFRJH7yJ3ZbhtbszoISl/BBvqxYQ0HrltkZCNwSBK6J6AA59dsiUR3buqxdRyzLtdxiQKXLjSU46wSKpZnVQ19eiye1243zoLQSd1g7Ux46Skay7UtzDzpOiqDs+1JE724LlmLtQXIgwNyFp3a/Dfk/CIMy3t0mQk/mph1i6Cgokw3bklmrvPrQttegvtIKAlNxL9AwbnKtQbxGA3jrQ5RKw5ArRir6SOpOJYJ1nCNOqZzlJKDYINZ8Gnkoy/MvTNgCjGKuVNtuP2AoK7CD/mkiSXbbFa8NrcqNEt86nVZMCH+NiB69OwxOUE3u7GOMxjfVu2Oh9mWXun3AMxqTbEbyZH8WXkGyC9NC81i5DxXDMa7h954T+HZpyD/XdOZpUnwbBLooadL0B6o"; order = "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";
@ -2118,7 +2112,7 @@ public class InvoiceTest {
" }\n" + " }\n" +
" ]\n" + " ]\n" +
"}"; "}";
System.out.println(AisinoInvoiceDecryptUtil.encrypt(order,key)); System.out.println(JianshuiInvoiceDecryptUtil.encrypt(order,key));
System.out.println("========================"); System.out.println("========================");
// System.out.println(AisinoInvoiceEncryptUtil.encryptAES(order,key)); // System.out.println(AisinoInvoiceEncryptUtil.encryptAES(order,key));

File diff suppressed because one or more lines are too long

@ -2,7 +2,7 @@ package com.jianshui.invoice.utils;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import com.jianshui.common.utils.encrypt.AisinoInvoiceDecryptUtil; import com.jianshui.common.utils.encrypt.JianshuiInvoiceDecryptUtil;
/** /**
* @Description * @Description
@ -346,7 +346,7 @@ public class QdEleInvoiceTest {
System.out.println(order); System.out.println(order);
String m = AisinoInvoiceDecryptUtil.encrypt(order, key); String m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------发票开具-----------------------------"); System.out.println("-------------------发票开具-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -355,12 +355,12 @@ public class QdEleInvoiceTest {
System.out.println(query); System.out.println(query);
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------发票查询(订单号)-----------------------------"); System.out.println("-------------------发票查询(订单号)-----------------------------");
query = "{\"identity\":\"1200\",\"orderno\":[ '00000000005223210916']}"; query = "{\"identity\":\"1200\",\"orderno\":[ '00000000005223210916']}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -371,7 +371,7 @@ public class QdEleInvoiceTest {
" \"fphm\": \"66198156\",\n" + " \"fphm\": \"66198156\",\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -382,7 +382,7 @@ public class QdEleInvoiceTest {
" \"sellerTaxnum\": \"110101MYJ2GPQQ4\"\n" + " \"sellerTaxnum\": \"110101MYJ2GPQQ4\"\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -392,7 +392,7 @@ public class QdEleInvoiceTest {
" \"dyjmc\": \"\"" + " \"dyjmc\": \"\"" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -419,7 +419,7 @@ public class QdEleInvoiceTest {
" ]\n" + " ]\n" +
"}"; "}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -431,17 +431,17 @@ public class QdEleInvoiceTest {
"\"invoiceCode\": \"150000020026\"," + "\"invoiceCode\": \"150000020026\"," +
"\"invoiceNum\": \"94579496\"" + "\"invoiceNum\": \"94579496\"" +
"}]}"; "}]}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
query = ""; query = "";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
order = "{\"identity\":\"1131\",\"order\":{\"buye rname\":\"山东爱信诺\",\"taxnum\":\"124511234993295177\",\"phone\":\"0\",\"address\":\"山东省济南市华信路 10\",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo12345631\",\"invoicedate\":\"2018-10 -31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永 路 138 号 \",\"saletaxnum\":\"339901999999142\",\"kptype\":\"1\",\"message\":\"\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏\",\"checker\":\"林莉苏\",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\" 0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"p\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"\",\"lsl bs\":\"\",\"kce\":\"\"}]}}"; order = "{\"identity\":\"1131\",\"order\":{\"buye rname\":\"山东爱信诺\",\"taxnum\":\"124511234993295177\",\"phone\":\"0\",\"address\":\"山东省济南市华信路 10\",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo12345631\",\"invoicedate\":\"2018-10 -31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永 路 138 号 \",\"saletaxnum\":\"339901999999142\",\"kptype\":\"1\",\"message\":\"\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏\",\"checker\":\"林莉苏\",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\" 0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"p\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"\",\"lsl bs\":\"\",\"kce\":\"\"}]}}";
// order="{\"identity\":\"1132\",\"order\":[{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"334511234993295178\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451234\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]},{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"393511234993295177\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451243\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]}]}"; // order="{\"identity\":\"1132\",\"order\":[{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"334511234993295178\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451234\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]},{\"buyername\":\"浙江爱信诺\",\"taxnum\":\"393511234993295177\",\"phone\":\"0\",\"address\":\" 浙江省杭州市万塘路 \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo243451243\",\"invoicedate\":\"2018-10-31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行 442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新 永路 138 号 \",\"saletaxnum\":\"150301199811285326\",\"kptype\":\"1\",\"message\":\"1\",\"invoiceNow\":\"1\",\"payee\":\"林莉苏 \",\"checker\":\"林莉苏 \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"c\",\"cpybz\":\"\",\"detail\":[{\"goodsname\":\"苹果\",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"111\",\"unit\":\"吨 \",\"spbm\":\"10101150101\",\"zsbm\":\"111\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"1\",\"lslbs\":\"1\",\"kce\":\"0\",\"tax\":\"1.20\",\"spbm\":\"112\",\"taxamt\":\"112\"}]}]}";
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println(m); System.out.println(m);
@ -449,7 +449,7 @@ public class QdEleInvoiceTest {
query = "{\"FP\":{\"GMFDZDH\":\"山东省潍坊市奎文区胜利东街4778号中央商务区2号楼301号\",\"XHFSBH\":\"91370703334376454N\",\"QDXMMC\":\"销售货物或者提供应税劳务、服务清单\",\"KPRQ\":\"20230331163347\",\"SGBZ\":\"\",\"XHFDZDH\":\"山东省潍坊市寒亭区白云路9号3号楼1-9 15165614885\",\"KPR\":\"庄莹莹\",\"QDBZ\":0,\"FHR\":\"于艺娇\",\"KPLX\":0,\"FPMX\":[{\"XMMC\":\"*设计服务*物料制作费\",\"ZXBM\":\"\",\"DJ\":\"128.712871\",\"ZZSTSGL\":\"\",\"KCE\":\"\",\"SPBM\":\"3040301990000000000\",\"SPSL\":\"1\",\"GGXH\":\"\",\"SE\":\"1.29\",\"DW\":\"批\",\"YHZCBS\":\"0\",\"SL\":\"0.01\",\"JE\":\"128.71\",\"FPHXZ\":0}],\"XHFMC\":\"山东达飞文化传播有限公司\",\"XHFYHZH\":\"潍坊农村商业银行股份有限公司寒亭支行 9070107120142050010911\",\"BZ\":\"\",\"EWM\":\"01,10,037002000311,66223914,128.71,20230331,05834122603484774628,2C6E,\",\"HJJE\":\"128.71\",\"FWM\":\"03-17-*>>1/062*89538-9/2265>975>20477<-/2-149-+4503*/6+3-/<>2+>90523-8><<7*8545668<276-503+9150181/-194>21</587*\",\"GMFYHZH\":\"中信银行潍坊分行8110601012700778796\",\"JYM\":\"05834122603484774628\",\"QZID\":\"4169455300053b94000000040003fb18\",\"JSHJ\":\"130.00\",\"BMBBBH\":\"48.0\",\"YFPDM\":\"\",\"FPHM\":\"66223914\",\"JQBH\":\"539902787121\",\"YFPHM\":\"\",\"FPDM\":\"037002000311\",\"GMFYX\":\"\",\"HJSE\":\"1.29\",\"GMFMC\":\"潍坊圣希门诊部有限公司\",\"MBDM\":\"3700\",\"SKR\":\"张海英\",\"GMFSJ\":\"\",\"GMFSBH\":\"91370700MA3MNWGFXD\",\"DKBZ\":0}}"; query = "{\"FP\":{\"GMFDZDH\":\"山东省潍坊市奎文区胜利东街4778号中央商务区2号楼301号\",\"XHFSBH\":\"91370703334376454N\",\"QDXMMC\":\"销售货物或者提供应税劳务、服务清单\",\"KPRQ\":\"20230331163347\",\"SGBZ\":\"\",\"XHFDZDH\":\"山东省潍坊市寒亭区白云路9号3号楼1-9 15165614885\",\"KPR\":\"庄莹莹\",\"QDBZ\":0,\"FHR\":\"于艺娇\",\"KPLX\":0,\"FPMX\":[{\"XMMC\":\"*设计服务*物料制作费\",\"ZXBM\":\"\",\"DJ\":\"128.712871\",\"ZZSTSGL\":\"\",\"KCE\":\"\",\"SPBM\":\"3040301990000000000\",\"SPSL\":\"1\",\"GGXH\":\"\",\"SE\":\"1.29\",\"DW\":\"批\",\"YHZCBS\":\"0\",\"SL\":\"0.01\",\"JE\":\"128.71\",\"FPHXZ\":0}],\"XHFMC\":\"山东达飞文化传播有限公司\",\"XHFYHZH\":\"潍坊农村商业银行股份有限公司寒亭支行 9070107120142050010911\",\"BZ\":\"\",\"EWM\":\"01,10,037002000311,66223914,128.71,20230331,05834122603484774628,2C6E,\",\"HJJE\":\"128.71\",\"FWM\":\"03-17-*>>1/062*89538-9/2265>975>20477<-/2-149-+4503*/6+3-/<>2+>90523-8><<7*8545668<276-503+9150181/-194>21</587*\",\"GMFYHZH\":\"中信银行潍坊分行8110601012700778796\",\"JYM\":\"05834122603484774628\",\"QZID\":\"4169455300053b94000000040003fb18\",\"JSHJ\":\"130.00\",\"BMBBBH\":\"48.0\",\"YFPDM\":\"\",\"FPHM\":\"66223914\",\"JQBH\":\"539902787121\",\"YFPHM\":\"\",\"FPDM\":\"037002000311\",\"GMFYX\":\"\",\"HJSE\":\"1.29\",\"GMFMC\":\"潍坊圣希门诊部有限公司\",\"MBDM\":\"3700\",\"SKR\":\"张海英\",\"GMFSJ\":\"\",\"GMFSBH\":\"91370700MA3MNWGFXD\",\"DKBZ\":0}}";
// query = "{}"; // query = "{}";
m = AisinoInvoiceDecryptUtil.encrypt(query, key); m = JianshuiInvoiceDecryptUtil.encrypt(query, key);
System.out.println(m); System.out.println(m);
System.out.println("-------------------红字信息表申请-----------------------------"); System.out.println("-------------------红字信息表申请-----------------------------");
// String redapply = "{\n" + // String redapply = "{\n" +
@ -519,29 +519,29 @@ public class QdEleInvoiceTest {
" \"fphxz\": \"0\"\n" + " \"fphxz\": \"0\"\n" +
" }]\n" + " }]\n" +
" }"; " }";
String redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); String redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------红字信息表结果查询-----------------------------"); System.out.println("-------------------红字信息表结果查询-----------------------------");
// redapply = "{\"buyerTaxNo\":\"91120116741399389F\",\"invoiceLine\":\"s\"}"; // redapply = "{\"buyerTaxNo\":\"91120116741399389F\",\"invoiceLine\":\"s\"}";
redapply = "{\"SQBXZQQPCH\":\"FSFP001-00000017\",\"NSRSBH\":\"366557441212122\",\"FPLXDM\":\"s\",\"XXBFW\":\"1\",\"billNo\":\"661545026858220629144108\"}"; redapply = "{\"SQBXZQQPCH\":\"FSFP001-00000017\",\"NSRSBH\":\"366557441212122\",\"FPLXDM\":\"s\",\"XXBFW\":\"1\",\"billNo\":\"661545026858220629144108\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------月汇总信息查询-----------------------------"); System.out.println("-------------------月汇总信息查询-----------------------------");
// redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"ssyf\":\"202106\"}"; // redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"ssyf\":\"202106\"}";
redapply = "{\"nsrsbh\":\"92370102MA3LDY427Q\",\"fjh\":\"587001605138\",\"ssyf\":\"202106\"}"; redapply = "{\"nsrsbh\":\"92370102MA3LDY427Q\",\"fjh\":\"587001605138\",\"ssyf\":\"202106\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------红字信息表撤销-----------------------------"); System.out.println("-------------------红字信息表撤销-----------------------------");
redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"xxbbh\":\"321321\"}"; redapply = "{\"nsrsbh\":\"91370124163533637H\",\"fjh\":\"1\",\"xxbbh\":\"321321\"}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------库存查询-----------------------------"); System.out.println("-------------------库存查询-----------------------------");
redapply = "{}"; redapply = "{}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
System.out.println("-------------------发票专用章生成-----------------------------"); System.out.println("-------------------发票专用章生成-----------------------------");
@ -551,7 +551,7 @@ public class QdEleInvoiceTest {
" \"FPZYZHPHM\": \"132123131312312312\",\n" + " \"FPZYZHPHM\": \"132123131312312312\",\n" +
" \"FPZYZSXBM\": \"\"\n" + " \"FPZYZSXBM\": \"\"\n" +
"}"; "}";
redapplyDecrypt = AisinoInvoiceDecryptUtil.encrypt(redapply, key); redapplyDecrypt = JianshuiInvoiceDecryptUtil.encrypt(redapply, key);
System.out.println(redapplyDecrypt); System.out.println(redapplyDecrypt);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -669,7 +669,7 @@ public class QdEleInvoiceTest {
" }\n" + " }\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------用户登记-----------------------------"); System.out.println("-------------------用户登记-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -778,7 +778,7 @@ public class QdEleInvoiceTest {
" \"serviceId\": \"lzfpkj\"\n" + " \"serviceId\": \"lzfpkj\"\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------蓝字发票开具-----------------------------"); System.out.println("-------------------蓝字发票开具-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -794,7 +794,7 @@ public class QdEleInvoiceTest {
"}"; "}";
order = "{\"async\":false,\"nsrsbh\":\"51440300502682056B\",\"bsrysfzjhm\":\"450981198703130942\",\"requestId\":\"20230913@ca426816-7a79-416a-8e9b-59f8b4e80982\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"tycxjk\"}"; order = "{\"async\":false,\"nsrsbh\":\"51440300502682056B\",\"bsrysfzjhm\":\"450981198703130942\",\"requestId\":\"20230913@ca426816-7a79-416a-8e9b-59f8b4e80982\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"tycxjk\"}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------通用发票查询-----------------------------"); System.out.println("-------------------通用发票查询-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -809,7 +809,7 @@ public class QdEleInvoiceTest {
" \"serviceId\": \"hqrlsbewm\"\n" + " \"serviceId\": \"hqrlsbewm\"\n" +
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------获取人脸识别二维码-----------------------------"); System.out.println("-------------------获取人脸识别二维码-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -915,7 +915,7 @@ public class QdEleInvoiceTest {
"}"; "}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------红字申请表上传-控制台-----------------------------"); System.out.println("-------------------红字申请表上传-控制台-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -931,7 +931,7 @@ public class QdEleInvoiceTest {
order = "{\"identity\":\"1260\",\"SQBXZQQPCH\":\"230324155308\",\"NSRSBH\":\"9137010096471813XB\",\"FPLXDM\":\"s\",\"XXBFW\":0}"; order = "{\"identity\":\"1260\",\"SQBXZQQPCH\":\"230324155308\",\"NSRSBH\":\"9137010096471813XB\",\"FPLXDM\":\"s\",\"XXBFW\":0}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------红字申请表下载-控制台-----------------------------"); System.out.println("-------------------红字申请表下载-控制台-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -1029,7 +1029,7 @@ public class QdEleInvoiceTest {
order = "{\"async\":true,\"nsrsbh\":\"51440300502682056B\",\"jsonData\":{\"kprq\":\"20230905000000\",\"wjgs\":\"PDF\",\"fphm\":\"23952000000015068928\"},\"bsrysfzjhm\":\"450981198703130942\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"qdfpwjhq\"}"; order = "{\"async\":true,\"nsrsbh\":\"51440300502682056B\",\"jsonData\":{\"kprq\":\"20230905000000\",\"wjgs\":\"PDF\",\"fphm\":\"23952000000015068928\"},\"bsrysfzjhm\":\"450981198703130942\",\"dqbm\":\"shenzhen\",\"appkey\":\"+yBB13/8JybLGc+p1Pr8jw==\",\"serviceId\":\"qdfpwjhq\"}";
System.out.println(order); System.out.println(order);
m = AisinoInvoiceDecryptUtil.encrypt(order, key); m = JianshuiInvoiceDecryptUtil.encrypt(order, key);
System.out.println("-------------------发票查询-数科-----------------------------"); System.out.println("-------------------发票查询-数科-----------------------------");
System.out.println(m); System.out.println(m);
System.out.println("------------------------------------------------"); System.out.println("------------------------------------------------");
@ -1037,7 +1037,7 @@ public class QdEleInvoiceTest {
// order = "Afepz1WAiJb1NSFa55EWPgW7dTwjzt4VVx21H17XyPe+i3I1XABxOmzCJ+DOZGO4iATVfrgz7nDk/w/JB79AVKSBmTMCobqpDEXfSaO9yyanVTvZqndxfCrDuuCLhTTYlEMzUcswaeCaFkI1O9T7ab\\ngQElxC/4QEh6E2IxbTHrZO5seOr4zZdDhG8FUZ1rl0s7tDY15d0="; // order = "Afepz1WAiJb1NSFa55EWPgW7dTwjzt4VVx21H17XyPe+i3I1XABxOmzCJ+DOZGO4iATVfrgz7nDk/w/JB79AVKSBmTMCobqpDEXfSaO9yyanVTvZqndxfCrDuuCLhTTYlEMzUcswaeCaFkI1O9T7ab\\ngQElxC/4QEh6E2IxbTHrZO5seOr4zZdDhG8FUZ1rl0s7tDY15d0=";
m = AisinoInvoiceDecryptUtil.decrypt(m, key); m = JianshuiInvoiceDecryptUtil.decrypt(m, key);
System.out.println(m); System.out.println(m);

Loading…
Cancel
Save