封版 启用2.0版本

beta-enc
dongxiaoke 2 years ago
parent 43632f1e6a
commit 760c669452
  1. 4
      jianshui-invoice/src/main/java/com/jianshui/invoice/domain/FindRedInfo.java
  2. 4
      jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/ElephantInvoiceApiServiceImpl.java
  3. 7
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/elephant/ElephantUtils.java

@ -2,6 +2,8 @@ package com.jianshui.invoice.domain;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
/**
* @author xingze
* @date 2023/9/11
@ -9,7 +11,9 @@ import lombok.Data;
@Data
public class FindRedInfo {
// 请求批次号
@NotEmpty
private String SQBQQPCH;
// 申请方纳税人识别号
@NotEmpty
private String NSRSBH;
}

@ -806,6 +806,10 @@ public class ElephantInvoiceApiServiceImpl implements IInvoiceApiService {
eleNewMessage.setMessage("接口请求失败");
return eleNewMessage;
}
}

@ -367,7 +367,7 @@ public class ElephantUtils {
// 最终接口地址
String url = host + uri;
DxhyInterfaceResponse dxhyInterfaceResponse = null;
// 封装大象v6调用类
DxhyInterfaceRequest dxhyInterfaceRequest = new DxhyInterfaceRequest();
@ -396,11 +396,16 @@ public class ElephantUtils {
// 不加密
dxhyInterfaceRequest.setEncryptCode("0");
DxhyInterfaceResponse dxhyInterfaceResponse = null;
try {
// 大象v6调用方法(获取结果处理)
log.info("【销项】【大象工具类】调用V6接口,入参{}",JSONUtil.toJsonStr(dxhyInterfaceRequest));
dxhyInterfaceResponse = InvokeDxhyApi.dxhyInterfaceInvoke(dxhyInterfaceRequest);
log.info("【销项】【大象工具类】请求成功,结果{}",JSONUtil.toJsonStr(dxhyInterfaceResponse));
} catch (Exception e) {
log.error("【销项】【大象接口】调用HttpsUtilV6.Exception, url=" + url + ",request=" + JSONUtil.toJsonStr(dxhyInterfaceRequest), e);
}

Loading…
Cancel
Save