|
@@ -37,8 +37,8 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
* @date: 2020/10/13 9:15
|
|
|
*/
|
|
|
@Override
|
|
|
- public String oneStepFlow(String businessScene, String fileId, String fileName, String signerAccountId,String authorizedAccountId) {
|
|
|
- JSONObject json = buildParam(businessScene, fileId, fileName, signerAccountId,authorizedAccountId);
|
|
|
+ public String oneStepFlow(String businessScene, String fileId,int size, String fileName, String signerAccountId,String authorizedAccountId) {
|
|
|
+ JSONObject json = buildParam(businessScene, fileId,size, fileName, signerAccountId,authorizedAccountId);
|
|
|
JSONObject jsonObject = eSignHttpUtil.doPostGetJson(ESignUrl.CreateFlowOneStepUrl,json);
|
|
|
JSONObject result = (JSONObject)jsonObject.get("data");
|
|
|
return result.get("flowId").toString();
|
|
@@ -133,7 +133,7 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
* <p>
|
|
|
*
|
|
|
*/
|
|
|
- private JSONObject buildParam(String businessScene, String fileId, String fileName, String signerAccountId,String authorizedAccountId) {
|
|
|
+ private JSONObject buildParam(String businessScene, String fileId,int size, String fileName, String signerAccountId,String authorizedAccountId) {
|
|
|
// 附件信息列表 这里模拟没有附件的情况
|
|
|
List<Attachment> attachments = new ArrayList<>();
|
|
|
|
|
@@ -155,7 +155,13 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
|
|
|
// 签署方信息
|
|
|
// 平台方
|
|
|
- PosBeanInfo posBean1 = new PosBeanInfo("1", 100F, 100F); // 签署位置
|
|
|
+ //签署位置
|
|
|
+ Float posX = 240F;
|
|
|
+ Float posY = 620F;
|
|
|
+ for (int i = 0;i<size;i++) {
|
|
|
+ posY =posY-11F;
|
|
|
+ }
|
|
|
+ PosBeanInfo posBean1 = new PosBeanInfo("1", posX, posY); // 签署位置
|
|
|
// SignfieldInfo signfield1 = new SignfieldInfo(false,"2", fileId, null, null, null, posBean1, null); // 签署区(签署主体是公司)
|
|
|
SignfieldInfo signfield1 = new SignfieldInfo(false, fileId, null, null, null, posBean1, null); // 签署区(个人签署)
|
|
|
List<SignfieldInfo> signfields = new ArrayList<>();
|