|  |  | 
 |  |  | //          params.put("file",file); | 
 |  |  |           params.put("url",fileUrl); | 
 |  |  |           params.put("dealType",5); //指定合同文件签署方式 5 为部分自动签 | 
 |  |  |           params.put("positionType",1); //指定通过表单域方式设置签字位置 | 
 |  |  |           params.put("positionType",2); //指定通过表单域方式设置签字位置 | 
 |  |  |           params.put("fileType",1); | 
 |  |  |           params.put("needQifengSign",1); | 
 |  |  |           params.put("notifyUrl",notifyUrl); | 
 |  |  | 
 |  |  |           sReq.setNoNeedVerify(1); | 
 |  |  |           signatories.add(sReq); | 
 |  |  |           params.put("signatories",signatories.toJSONString()); | 
 |  |  |           System.out.println(signatories.toJSONString()); | 
 |  |  |           System.out.println("================"+JSONObject.toJSONString(params)); | 
 |  |  |           String str= HttpClientUtils.init().getPost(url,null,params,true); | 
 |  |  |           System.out.println(str); | 
 |  |  |           saveInterfaceLog(url,"【电子签】发起签约",JSONObject.toJSONString(params),str); | 
 |  |  | 
 |  |  |           params.put("serverCa",1); //使用云证书 | 
 |  |  |           params.put("file",new File(file)); | 
 |  |  |           params.put("dealType",5); //指定合同文件签署方式 5 为部分自动签 | 
 |  |  |           params.put("positionType",1); //指定通过表单域方式设置签字位置 | 
 |  |  |           params.put("positionType",2); //指定通过表单域方式设置签字位置 | 
 |  |  |           params.put("fileType",0); | 
 |  |  |           params.put("needQifengSign",1); | 
 |  |  |           params.put("notifyUrl",notifyUrl); | 
 |  |  | 
 |  |  | //          sReq.setChapteJson(postionJson); | 
 |  |  |           sReq.setSearchKey(postionJson); | 
 |  |  |           sReq.setSignId(singId); | 
 |  |  |           sReq.setSearchConvertExtend("{\"fixX\":-80,\"fixY\":-80}"); | 
 |  |  |           sReq.setNoNeedVerify(1); | 
 |  |  |           signatories.add(sReq); | 
 |  |  |           params.put("signatories",signatories.toJSONString()); | 
 |  |  | 
 |  |  |      * 获取签署链接地址(返回文件地址,签署后才是文件地址,否则跳转到签署页面) | 
 |  |  |      * @param applyNo | 
 |  |  |      */ | 
 |  |  |     public String  linkFileStatus(String applyNo) { | 
 |  |  |  | 
 |  |  |         try {    initParams(); | 
 |  |  |             Map<String, Object> params = bodyParams; | 
 |  |  |             String url = SERVICE_URL + "/v2/sign/status"; | 
 |  |  |             //构建请求参数 | 
 |  |  |             params.put("applyNo",applyNo); //发起合同签署接口返回的APL编号 | 
 |  |  | //            params.put("fullName",fullName); //签约人名称 | 
 |  |  | //            params.put("identityCard",identityCard); //签约人证件号 | 
 |  |  | //            params.put("identityType",12); //证件类型 1身份证, 2护照, 3台胞证, 4港澳居民来往内地通行证, 11营业执照, 12统一社会信用代码, 20子账号, 99其他 | 
 |  |  |             String str= HttpClientUtils.init().getPost(url,null,params,true); | 
 |  |  |             System.out.println(str); | 
 |  |  |             saveInterfaceLog(url,"【电子签】签约状态查询",JSONObject.toJSONString(params),str); | 
 |  |  |             JSONObject json = JSONObject.parseObject(str); | 
 |  |  |             if(json!=null && json.getBoolean("success")){ | 
 |  |  |                 //0 :未签 1 :已签 2:拒签 3:已保全 | 
 |  |  |                 return  json.getString("data"); | 
 |  |  |             } | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             e.printStackTrace(); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      * 获取签署链接地址(返回文件地址,签署后才是文件地址,否则跳转到签署页面) | 
 |  |  |      * @param applyNo | 
 |  |  |      */ | 
 |  |  |     public String  linkFile(String applyNo) { | 
 |  |  |  | 
 |  |  |         try {    initParams(); |