|
@@ -3868,6 +3868,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
* @return
|
|
|
*/
|
|
|
public HashMap getSignatureContractId(String projectId, List<String> documentList ,String principalUserId,String generalManagerUserId){
|
|
|
+ HashMap hashMap = new HashMap();
|
|
|
+ Set<String> serialIdSet = new HashSet<>();
|
|
|
//根据项目id查询项目信息
|
|
|
RuralProjectRecords ruralProjectRecords = ruralProjectRecordsService.get(projectId);
|
|
|
//创建签署方信息
|
|
@@ -3877,20 +3879,20 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
companyAction.setName("公司印章");
|
|
|
companyAction.setSerialNo("1");
|
|
|
//公司圆章-竖
|
|
|
- companyAction.setSealId(COMPANYROUNDSEALIDVERTICAL);
|
|
|
+ serialIdSet.add(COMPANYROUNDSEALIDVERTICAL);
|
|
|
//添加盖章位置
|
|
|
List<Location> locations = Lists.newArrayList();
|
|
|
- Location location = new Location();
|
|
|
- location.setDocumentId(documentList.get(0));
|
|
|
- location.setPage("0");
|
|
|
- location.setRectType("SEAL_CORPORATE");
|
|
|
- //location.setKeyword("咨询企业(章)");
|
|
|
- location.setKeywordIndex(-1);
|
|
|
- location.setOffsetX("0.5264");
|
|
|
- location.setOffsetY("0.6787");
|
|
|
- locations.add(location);
|
|
|
- companyAction.setLocations(locations);
|
|
|
- actions.add(companyAction);
|
|
|
+ for (String documentId: documentList) {
|
|
|
+ Location location = new Location();
|
|
|
+ location.setSealId(COMPANYROUNDSEALIDVERTICAL);
|
|
|
+ location.setDocumentId(documentId);
|
|
|
+ location.setPage("0");
|
|
|
+ location.setRectType("SEAL_CORPORATE");
|
|
|
+ location.setKeywordIndex(-1);
|
|
|
+ location.setOffsetX("0.5264");
|
|
|
+ location.setOffsetY("0.6787");
|
|
|
+ locations.add(location);
|
|
|
+ }
|
|
|
|
|
|
//根据角色信息录入签署方信息
|
|
|
//负责人
|
|
@@ -3900,27 +3902,29 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(user.getMobile(),"",user.getName() + "一级注册造价工程师章-竖");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
- actionUser.setType("CORPORATE");
|
|
|
- actionUser.setName(user.getName() + "印章"); //填写人员信息
|
|
|
- actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
-
|
|
|
- //添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
- Location principalLocation = new Location();
|
|
|
- principalLocation.setDocumentId(documentList.get(0));
|
|
|
- principalLocation.setPage("0");
|
|
|
- principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
- //principalLocation.setKeyword("项目负责人(签字盖章)");
|
|
|
- principalLocation.setKeywordIndex(-1);
|
|
|
- principalLocation.setOffsetX("0.5971");
|
|
|
- principalLocation.setOffsetY("0.8176");
|
|
|
- principalLocations.add(principalLocation);
|
|
|
- actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ for (String documentId: documentList) {
|
|
|
+ //添加盖章位置
|
|
|
+ Location principalLocation = new Location();
|
|
|
+ serialIdSet.add(userSealId);
|
|
|
+ principalLocation.setSealId(userSealId);
|
|
|
+ principalLocation.setDocumentId(documentId);
|
|
|
+ principalLocation.setPage("0");
|
|
|
+ principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
+ principalLocation.setKeywordIndex(-1);
|
|
|
+ principalLocation.setOffsetX("0.5971");
|
|
|
+ principalLocation.setOffsetY("0.8176");
|
|
|
+ locations.add(principalLocation);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到项目负责人 "+ user.getName() + " 的印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
}
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到项目负责人信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
//总经理
|
|
|
User technologyPrincipalUser = UserUtils.getByLoginName("陈红星");
|
|
@@ -3928,27 +3932,35 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星个人签名章-竖");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
- actionUser.setType("CORPORATE");
|
|
|
- actionUser.setName(technologyPrincipalUser.getName() + "印章"); //填写人员信息
|
|
|
- actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ for (String documentId: documentList) {
|
|
|
+ //添加盖章位置
|
|
|
+ Location principalLocation = new Location();
|
|
|
+ serialIdSet.add(userSealId);
|
|
|
+ principalLocation.setSealId(userSealId);
|
|
|
+ principalLocation.setDocumentId(documentId);
|
|
|
+ principalLocation.setPage("0");
|
|
|
+ principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
+ principalLocation.setKeywordIndex(-1);
|
|
|
+ principalLocation.setOffsetX("0.7758");
|
|
|
+ principalLocation.setOffsetY("0.7339");
|
|
|
+ locations.add(principalLocation);
|
|
|
+ }
|
|
|
|
|
|
- //添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
- Location principalLocation = new Location();
|
|
|
- principalLocation.setDocumentId(documentList.get(0));
|
|
|
- principalLocation.setPage("0");
|
|
|
- principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
- //principalLocation.setKeyword("签发人");
|
|
|
- principalLocation.setKeywordIndex(-1);
|
|
|
- principalLocation.setOffsetX("0.7758");
|
|
|
- principalLocation.setOffsetY("0.7339");
|
|
|
- principalLocations.add(principalLocation);
|
|
|
- actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 陈红星 的印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
+ List<String> serialIdList = new ArrayList<String>(serialIdSet);
|
|
|
+ companyAction.setSealIds("[" + String.join(",", serialIdList) + "]");
|
|
|
+ companyAction.setAutoSign("true");
|
|
|
+ companyAction.setLocations(locations);
|
|
|
+ actions.add(companyAction);
|
|
|
|
|
|
|
|
|
//创建签署方信息表
|
|
@@ -3963,13 +3975,13 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
signatureContract.setDocuments(documentList);
|
|
|
//审定单用印流程id
|
|
|
signatureContract.setCategoryId(APPROVALCATEGORYID);
|
|
|
- signatureContract.setSend(false);
|
|
|
+ signatureContract.setSend(true);
|
|
|
signatureContract.setSignatories(signatories);
|
|
|
signatureContract.setSn("");
|
|
|
signatureContract.setSubject(ruralProjectRecords.getProjectName());//添加项目名称
|
|
|
net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(signatureContract);
|
|
|
String contractIdMapStr = SignaturePostUtil.sendPostApplicationJson(HTTPTOP + "/contract/createbycategory", json.toString());
|
|
|
- HashMap hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
+ hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
|
|
|
return hashMap;
|
|
|
}
|
|
@@ -3981,6 +3993,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
* @return
|
|
|
*/
|
|
|
public HashMap getSignatureExcelContractId(String projectId, List<String> documentList ,String principalUserId,String generalManagerUserId){
|
|
|
+ HashMap hashMap = new HashMap();
|
|
|
+ Set<String> serialIdSet = new HashSet<>();
|
|
|
//根据项目id查询项目信息
|
|
|
RuralProjectRecords ruralProjectRecords = ruralProjectRecordsService.get(projectId);
|
|
|
//创建签署方信息
|
|
@@ -3990,7 +4004,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
companyAction.setName("公司印章");
|
|
|
companyAction.setSerialNo("1");
|
|
|
//公司圆章
|
|
|
- companyAction.setSealId(COMPANYROUNDSEALID);
|
|
|
+ //companyAction.setSealId(COMPANYROUNDSEALID);
|
|
|
+ serialIdSet.add(COMPANYROUNDSEALID);
|
|
|
//添加盖章位置
|
|
|
List<Location> locations = Lists.newArrayList();
|
|
|
Location location = new Location();
|
|
@@ -4002,8 +4017,6 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
/*location.setOffsetX("0.5264");
|
|
|
location.setOffsetY("0.6787");*/
|
|
|
locations.add(location);
|
|
|
- companyAction.setLocations(locations);
|
|
|
- actions.add(companyAction);
|
|
|
|
|
|
//根据角色信息录入签署方信息
|
|
|
//负责人
|
|
@@ -4013,14 +4026,16 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(user.getMobile(),"",user.getName() + "一级注册造价工程师章");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
+ /*Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
|
actionUser.setName(user.getName() + "印章"); //填写人员信息
|
|
|
actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ actionUser.setSealId(userSealId); //人员印章id*/
|
|
|
+
|
|
|
+ serialIdSet.add(userSealId);
|
|
|
|
|
|
//添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
Location principalLocation = new Location();
|
|
|
principalLocation.setDocumentId(documentList.get(0));
|
|
|
principalLocation.setPage("0");
|
|
@@ -4028,11 +4043,12 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
principalLocation.setKeyword("项目负责人(签字盖章)");
|
|
|
principalLocation.setKeywordIndex(-1);
|
|
|
principalLocation.setOffsetX("-0.07");
|
|
|
+ locations.add(principalLocation);
|
|
|
/*principalLocation.setOffsetX("0.5971");
|
|
|
principalLocation.setOffsetY("0.8176");*/
|
|
|
- principalLocations.add(principalLocation);
|
|
|
+ /*principalLocations.add(principalLocation);
|
|
|
actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ actions.add(actionUser);*/
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -4042,14 +4058,16 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星个人签名章");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
+ /*Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
|
actionUser.setName(technologyPrincipalUser.getName() + "印章"); //填写人员信息
|
|
|
actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ actionUser.setSealId(userSealId); //人员印章id*/
|
|
|
+
|
|
|
+ serialIdSet.add(userSealId);
|
|
|
|
|
|
//添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
Location principalLocation = new Location();
|
|
|
principalLocation.setDocumentId(documentList.get(0));
|
|
|
principalLocation.setPage("0");
|
|
@@ -4057,13 +4075,19 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
principalLocation.setKeyword("签发人");
|
|
|
principalLocation.setOffsetY("0.1");
|
|
|
principalLocation.setKeywordIndex(-1);
|
|
|
+ locations.add(principalLocation);
|
|
|
/*principalLocation.setOffsetX("0.7758");
|
|
|
principalLocation.setOffsetY("0.7339");*/
|
|
|
- principalLocations.add(principalLocation);
|
|
|
+ /*principalLocations.add(principalLocation);
|
|
|
actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ actions.add(actionUser);*/
|
|
|
}
|
|
|
}
|
|
|
+ List<String> serialIdList = new ArrayList<String>(serialIdSet);
|
|
|
+ companyAction.setSealIds("[" + String.join(",", serialIdList) + "]");
|
|
|
+ companyAction.setAutoSign("true");
|
|
|
+ companyAction.setLocations(locations);
|
|
|
+ actions.add(companyAction);
|
|
|
|
|
|
|
|
|
//创建签署方信息表
|
|
@@ -4078,13 +4102,13 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
signatureContract.setDocuments(documentList);
|
|
|
//审定单用印流程id
|
|
|
signatureContract.setCategoryId(APPROVALCATEGORYID);
|
|
|
- signatureContract.setSend(false);
|
|
|
+ signatureContract.setSend(true);
|
|
|
signatureContract.setSignatories(signatories);
|
|
|
signatureContract.setSn("");
|
|
|
signatureContract.setSubject(ruralProjectRecords.getProjectName());//添加项目名称
|
|
|
net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(signatureContract);
|
|
|
String contractIdMapStr = SignaturePostUtil.sendPostApplicationJson(HTTPTOP + "/contract/createbycategory", json.toString());
|
|
|
- HashMap hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
+ hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
|
|
|
return hashMap;
|
|
|
}
|
|
@@ -4269,6 +4293,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
* @return
|
|
|
*/
|
|
|
public HashMap getReportSignatureContractId(String projectId, List<String> documentList ,String principalUserId,String generalManagerUserId){
|
|
|
+ HashMap hashMap = new HashMap();
|
|
|
+ List<String> serialIdList = Lists.newArrayList();
|
|
|
//根据项目id查询项目信息
|
|
|
RuralProjectRecords ruralProjectRecords = ruralProjectRecordsService.get(projectId);
|
|
|
//查询到显示信息
|
|
@@ -4281,11 +4307,13 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
companyAction.setName("公司执业印章");
|
|
|
companyAction.setSerialNo("1");
|
|
|
//公司方章编号
|
|
|
- companyAction.setSealId(COMPANYPARTIESSEALID);
|
|
|
+ //companyAction.setSealId(COMPANYPARTIESSEALID);
|
|
|
+ serialIdList.add(COMPANYPARTIESSEALID);
|
|
|
//添加盖章位置
|
|
|
List<Location> locations = Lists.newArrayList();
|
|
|
Location location = new Location();
|
|
|
location.setDocumentId(documentList.get(0));
|
|
|
+ location.setSealId(COMPANYPARTIESSEALID);
|
|
|
//location.setPage(0);
|
|
|
location.setRectType("SEAL_CORPORATE");
|
|
|
location.setKeyword("咨询企业执业印章");
|
|
@@ -4293,28 +4321,29 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
/*location.setOffsetX(0.7749);
|
|
|
location.setOffsetY(0.2725);*/
|
|
|
locations.add(location);
|
|
|
- companyAction.setLocations(locations);
|
|
|
- actions.add(companyAction);
|
|
|
|
|
|
- Action companyActionCircle = new Action();
|
|
|
+ /*Action companyActionCircle = new Action();
|
|
|
companyActionCircle.setType("CORPORATE");
|
|
|
companyActionCircle.setName("公司印章");
|
|
|
- companyActionCircle.setSerialNo("1");
|
|
|
+ companyActionCircle.setSerialNo("1");*/
|
|
|
//公司圆章编号
|
|
|
- companyActionCircle.setSealId(COMPANYROUNDSEALID);
|
|
|
+ //companyActionCircle.setSealId(COMPANYROUNDSEALID);
|
|
|
+ serialIdList.add(COMPANYROUNDSEALID);
|
|
|
//添加盖章位置
|
|
|
- List<Location> locationCircles = Lists.newArrayList();
|
|
|
+ //List<Location> locationCircles = Lists.newArrayList();
|
|
|
Location locationCircle = new Location();
|
|
|
locationCircle.setDocumentId(documentList.get(0));
|
|
|
+ locationCircle.setSealId(COMPANYROUNDSEALID);
|
|
|
//location.setPage(0);
|
|
|
locationCircle.setRectType("SEAL_CORPORATE");
|
|
|
locationCircle.setKeyword("江苏兴光项目管理有限公司(印章)");
|
|
|
locationCircle.setKeywordIndex(1);
|
|
|
locationCircle.setOffsetX("-0.2");
|
|
|
//locationCircle.setOffsetY("0.2725");
|
|
|
- locationCircles.add(locationCircle);
|
|
|
+ locations.add(locationCircle);
|
|
|
+ /*locationCircles.add(locationCircle);
|
|
|
companyActionCircle.setLocations(locationCircles);
|
|
|
- actions.add(companyActionCircle);
|
|
|
+ actions.add(companyActionCircle);*/
|
|
|
|
|
|
//根据角色信息录入签署方信息
|
|
|
//负责人
|
|
@@ -4324,49 +4353,64 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(user.getMobile(),"",user.getName() + "一级注册造价工程师章");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
+ /*Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
|
actionUser.setName(user.getName() + "印章"); //填写人员信息
|
|
|
actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ actionUser.setSealId(userSealId); //人员印章id*/
|
|
|
|
|
|
+ serialIdList.add(userSealId);
|
|
|
//添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
Location principalLocation = new Location();
|
|
|
principalLocation.setDocumentId(documentList.get(0));
|
|
|
+ principalLocation.setSealId(userSealId);
|
|
|
//principalLocation.setPage(0);
|
|
|
principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
principalLocation.setKeyword("项目负责人:");
|
|
|
principalLocation.setKeywordIndex(1);
|
|
|
+ locations.add(principalLocation);
|
|
|
/*principalLocation.setOffsetX(0.7759);
|
|
|
- principalLocation.setOffsetY(0.1934);*/
|
|
|
- principalLocations.add(principalLocation);
|
|
|
+ principalLocation.setOffsetY(0.1934);
|
|
|
+ principalLocations.add(principalLocation);*/
|
|
|
|
|
|
//添加盖章位置
|
|
|
Location principalLocationSign = new Location();
|
|
|
principalLocationSign.setDocumentId(documentList.get(0));
|
|
|
+ principalLocationSign.setSealId(userSealId);
|
|
|
//principalLocation.setPage(0);
|
|
|
principalLocationSign.setRectType("SEAL_CORPORATE");
|
|
|
principalLocationSign.setKeyword("项目负责人署名(");
|
|
|
principalLocationSign.setKeywordIndex(1);
|
|
|
+ locations.add(principalLocationSign);
|
|
|
/*principalLocation.setOffsetX(0.7759);
|
|
|
- principalLocation.setOffsetY(0.1934);*/
|
|
|
- principalLocations.add(principalLocationSign);
|
|
|
+ principalLocation.setOffsetY(0.1934);
|
|
|
+ principalLocations.add(principalLocationSign);*/
|
|
|
|
|
|
//添加盖章位置
|
|
|
Location principalLocationSignFirst = new Location();
|
|
|
principalLocationSignFirst.setDocumentId(documentList.get(0));
|
|
|
+ principalLocationSignFirst.setSealId(userSealId);
|
|
|
//principalLocation.setPage(0);
|
|
|
principalLocationSignFirst.setRectType("SEAL_CORPORATE");
|
|
|
principalLocationSignFirst.setKeyword("造价工程师:");
|
|
|
principalLocationSignFirst.setKeywordIndex(1);
|
|
|
+ locations.add(principalLocationSignFirst);
|
|
|
/*principalLocation.setOffsetX(0.7759);
|
|
|
- principalLocation.setOffsetY(0.1934);*/
|
|
|
+ principalLocation.setOffsetY(0.1934);
|
|
|
principalLocations.add(principalLocationSignFirst);
|
|
|
|
|
|
actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ actions.add(actionUser);*/
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到项目负责人 " + user.getName() + " 的印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到项目负责人的信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4406,26 +4450,70 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星一级注册造价工程师章");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
+ /*Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
|
actionUser.setName(technologyPrincipalUser.getName() + "印章"); //填写人员信息
|
|
|
actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ actionUser.setSealId(userSealId); //人员印章id*/
|
|
|
|
|
|
+ serialIdList.add(userSealId);
|
|
|
//添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
Location principalLocation = new Location();
|
|
|
principalLocation.setDocumentId(documentList.get(0));
|
|
|
+ principalLocation.setSealId(userSealId);
|
|
|
//principalLocation.setPage(0);
|
|
|
principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
principalLocation.setKeyword("技术负责人:");
|
|
|
principalLocation.setKeywordIndex(1);
|
|
|
+ principalLocation.setOffsetY("-0.07");
|
|
|
+ locations.add(principalLocation);
|
|
|
/*principalLocation.setOffsetX(0.7518);
|
|
|
- principalLocation.setOffsetY(0.1642);*/
|
|
|
+ principalLocation.setOffsetY(0.1642);
|
|
|
+ principalLocations.add(principalLocation);
|
|
|
+ actionUser.setLocations(principalLocations);
|
|
|
+ actions.add(actionUser);*/
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 陈红星 的造价师印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取成员印章id信息
|
|
|
+ String signatureUserSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星个人签名章");
|
|
|
+ if(StringUtils.isNotBlank(signatureUserSealId)){
|
|
|
+ /*Action actionUser = new Action();
|
|
|
+ actionUser.setType("CORPORATE");
|
|
|
+ actionUser.setName(technologyPrincipalUser.getName() + "印章"); //填写人员信息
|
|
|
+ actionUser.setSerialNo("1");
|
|
|
+ actionUser.setSealId(signatureUserSealId); //人员印章id*/
|
|
|
+
|
|
|
+ serialIdList.add(signatureUserSealId);
|
|
|
+ //添加盖章位置
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ Location principalLocation = new Location();
|
|
|
+ principalLocation.setDocumentId(documentList.get(0));
|
|
|
+ principalLocation.setSealId(signatureUserSealId);
|
|
|
+ //principalLocation.setPage(0);
|
|
|
+ principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
+ principalLocation.setKeyword("技术负责人:");
|
|
|
+ principalLocation.setKeywordIndex(1);
|
|
|
+ principalLocation.setOffsetX("0.07");
|
|
|
+ principalLocation.setOffsetY("0.03");
|
|
|
+ locations.add(principalLocation);
|
|
|
+ /*principalLocation.setOffsetY(0.1642);
|
|
|
principalLocations.add(principalLocation);
|
|
|
actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ actions.add(actionUser);*/
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 陈红星 的印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 陈红星 的信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -4435,28 +4523,44 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
//获取成员印章id信息
|
|
|
String userSealId = SignaturePostUtil.getUserSealByMobile(representativeUser.getMobile(),"","杨荣华个人签名章");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
- Action actionUser = new Action();
|
|
|
+ /*Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
|
actionUser.setName(representativeUser.getName() + "个人签名章"); //填写人员信息
|
|
|
actionUser.setSerialNo("1");
|
|
|
- actionUser.setSealId(userSealId); //人员印章id
|
|
|
+ actionUser.setSealId(userSealId); //人员印章id*/
|
|
|
|
|
|
+ serialIdList.add(userSealId);
|
|
|
//添加盖章位置
|
|
|
- List<Location> principalLocations = Lists.newArrayList();
|
|
|
+ //List<Location> principalLocations = Lists.newArrayList();
|
|
|
Location principalLocation = new Location();
|
|
|
principalLocation.setDocumentId(documentList.get(0));
|
|
|
+ principalLocation.setSealId(userSealId);
|
|
|
//principalLocation.setPage(0);
|
|
|
principalLocation.setRectType("SEAL_CORPORATE");
|
|
|
principalLocation.setKeyword("法定代表人:");
|
|
|
principalLocation.setKeywordIndex(1);
|
|
|
/*principalLocation.setOffsetX(0.7518);*/
|
|
|
principalLocation.setOffsetY("0.03");
|
|
|
- principalLocations.add(principalLocation);
|
|
|
+ locations.add(principalLocation);
|
|
|
+ /*principalLocations.add(principalLocation);
|
|
|
actionUser.setLocations(principalLocations);
|
|
|
- actions.add(actionUser);
|
|
|
+ actions.add(actionUser);*/
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 杨荣华 的印章信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ hashMap.put("code","2");
|
|
|
+ hashMap.put("message","查询不到技术负责人 杨荣华 的信息!请联系管理员");
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
|
|
|
+ companyAction.setSealIds("[" + String.join(",", serialIdList) + "]");
|
|
|
+ companyAction.setAutoSign("true");
|
|
|
+ companyAction.setLocations(locations);
|
|
|
+ actions.add(companyAction);
|
|
|
+
|
|
|
|
|
|
//创建签署方信息表
|
|
|
List<SignatorieInfo> signatories = Lists.newArrayList();
|
|
@@ -4470,13 +4574,13 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
signatureContract.setDocuments(documentList);
|
|
|
//报告用印流程id
|
|
|
signatureContract.setCategoryId(REPORTCATEGORYID);
|
|
|
- signatureContract.setSend(false);
|
|
|
+ signatureContract.setSend(true);
|
|
|
signatureContract.setSignatories(signatories);
|
|
|
signatureContract.setSn("");
|
|
|
signatureContract.setSubject(ruralProjectRecords.getProjectName());//添加项目名称
|
|
|
net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(signatureContract);
|
|
|
String contractIdMapStr = SignaturePostUtil.sendPostApplicationJson(HTTPTOP + "/contract/createbycategory", json.toString());
|
|
|
- HashMap hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
+ hashMap = JSON.parseObject(contractIdMapStr, HashMap.class);
|
|
|
|
|
|
return hashMap;
|
|
|
}
|