diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java index cf8a11c..d769fef 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/sign/IRSAPIRequest.java @@ -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"); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java index 77437a1..5eefa62 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java @@ -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 diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java index 6610cf5..0c5c737 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/dto/SignReqDTO.java @@ -21,4 +21,8 @@ public class SignReqDTO { private String fileName; + private String posPage; + + private Integer signType; + }