Browse Source

盖章参数补充

tags/24080901
CMM 1 year ago
parent
commit
e2a98d740a
3 changed files with 12 additions and 2 deletions
  1. +4
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java
  2. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  3. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java

+ 4
- 2
pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java View File

@@ -47,6 +47,8 @@ public class IRSAPIRequest {
Float posY = req.getPosY();
String sealSn = req.getSealSn();
String fileName = req.getFileName();
String posPage = req.getPosPage();
Integer signType = req.getSignType();
JSONObject obj = null;
String resp = null;
try {
@@ -55,9 +57,9 @@ public class IRSAPIRequest {
ReqData.put("sealSn", sealSn);
ReqData.put("posX", posX);
ReqData.put("posY", posY);
ReqData.put("signType", "1");
ReqData.put("signType", signType);
// ReqData.put("key", "单位");
ReqData.put("posPage", "1");
ReqData.put("posPage", posPage);
ReqData.put("fileName", fileName);
resp = post(ReqData, "post");



+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -462,6 +462,10 @@ public class TodoCenterManage {
.eq(CompanySignature::getOrganizationCode, userFullInfo.getOrganizationCode()));
String sealSn = companySignature.getSealSn();
signReq.setSealSn(sealSn);
String posPage = req.getPosPage();
signReq.setPosPage(posPage);
Integer signType = req.getSignType();
signReq.setSignType(signType);
// 调用盖章接口,获取盖章后返回的pdf文件字符数组
byte[] signPdf = IRSAPIRequest.createSignPdf(signReq);
// 转换成MultipartFile


+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java View File

@@ -21,4 +21,8 @@ public class SignReqDTO {

private String fileName;

private String posPage;

private Integer signType;

}

Loading…
Cancel
Save