|
@@ -110,6 +110,7 @@ import java.util.*;
|
|
|
public class RuralProjectMessageService extends CrudService<RuralProjectMessageDao, RuralProjectRecords> {
|
|
|
private static final String HTTPTOP = Global.getConfig("signature_http_top");
|
|
|
private static final String COMPANYROUNDSEALID = Global.getConfig("company_round_seal_id");
|
|
|
+ private static final String COMPANYROUNDSEALIDVERTICAL = Global.getConfig("company_round_seal_id_vertical");
|
|
|
private static final String COMPANYPARTIESSEALID = Global.getConfig("company_parties_seal_id");
|
|
|
private static final String APPROVALCATEGORYID = Global.getConfig("approval_category_id");
|
|
|
private static final String REPORTCATEGORYID = Global.getConfig("report_category_id");
|
|
@@ -191,6 +192,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
private ProjectReportedTypeService projectReportedTypeService;
|
|
|
@Autowired
|
|
|
private ProjectEngineeringService engineeringService;
|
|
|
+ @Autowired
|
|
|
+ private RuralProjectMessageElectronicSealService ruralProjectMessageElectronicSealService;
|
|
|
|
|
|
private static byte[] SYN_BYTE = new byte[0];
|
|
|
|
|
@@ -3873,8 +3876,8 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
companyAction.setType("CORPORATE");
|
|
|
companyAction.setName("公司印章");
|
|
|
companyAction.setSerialNo("1");
|
|
|
- //公司圆章
|
|
|
- companyAction.setSealId(COMPANYROUNDSEALID);
|
|
|
+ //公司圆章-竖
|
|
|
+ companyAction.setSealId(COMPANYROUNDSEALIDVERTICAL);
|
|
|
//添加盖章位置
|
|
|
List<Location> locations = Lists.newArrayList();
|
|
|
Location location = new Location();
|
|
@@ -3895,7 +3898,7 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
User user = UserUtils.get(principalUserId);
|
|
|
if(null != user){
|
|
|
//获取成员印章id信息
|
|
|
- String userSealId = SignaturePostUtil.getUserSealByMobile(user.getMobile(),"",user.getName() + "一级注册造价工程师章");
|
|
|
+ String userSealId = SignaturePostUtil.getUserSealByMobile(user.getMobile(),"",user.getName() + "一级注册造价工程师章-竖");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
@@ -3923,7 +3926,7 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
User technologyPrincipalUser = UserUtils.getByLoginName("陈红星");
|
|
|
if(null != technologyPrincipalUser){
|
|
|
//获取成员印章id信息
|
|
|
- String userSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星个人签名章");
|
|
|
+ String userSealId = SignaturePostUtil.getUserSealByMobile(technologyPrincipalUser.getMobile(),"","陈红星个人签名章-竖");
|
|
|
if(StringUtils.isNotBlank(userSealId)){
|
|
|
Action actionUser = new Action();
|
|
|
actionUser.setType("CORPORATE");
|
|
@@ -4139,6 +4142,9 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
public String getReportSignatureContractId(String projectId, List<String> documentList ,String principalUserId,String generalManagerUserId){
|
|
|
//根据项目id查询项目信息
|
|
|
RuralProjectRecords ruralProjectRecords = ruralProjectRecordsService.get(projectId);
|
|
|
+ //查询到显示信息
|
|
|
+ ProjectReportSignatureInfo projectReportSignatureInfo = ruralProjectMessageElectronicSealService.findProjectReportSignatureInfoByProjectId(projectId);
|
|
|
+
|
|
|
//创建签署方信息
|
|
|
List<Action> actions = Lists.newArrayList();
|
|
|
Action companyAction = new Action();
|
|
@@ -4229,9 +4235,61 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
principalLocationSigns.add(principalLocationSign);
|
|
|
actionUserSign.setLocations(principalLocationSigns);
|
|
|
actions.add(actionUserSign);
|
|
|
+
|
|
|
+
|
|
|
+ Action actionUserSignFirst = new Action();
|
|
|
+ actionUserSignFirst.setType("CORPORATE");
|
|
|
+ actionUserSignFirst.setName(user.getName() + "印章"); //填写人员信息
|
|
|
+ actionUserSignFirst.setSerialNo("1");
|
|
|
+ actionUserSignFirst.setSealId(userSealId); //人员印章id
|
|
|
+
|
|
|
+ //添加盖章位置
|
|
|
+ List<Location> principalLocationSignFirsts = Lists.newArrayList();
|
|
|
+ Location principalLocationSignFirst = new Location();
|
|
|
+ principalLocationSignFirst.setDocumentId(documentList.get(0));
|
|
|
+ //principalLocation.setPage(0);
|
|
|
+ principalLocationSignFirst.setRectType("SEAL_CORPORATE");
|
|
|
+ principalLocationSignFirst.setKeyword("项目负责人签名");
|
|
|
+ principalLocationSignFirst.setKeywordIndex(1);
|
|
|
+ /*principalLocation.setOffsetX(0.7759);
|
|
|
+ principalLocation.setOffsetY(0.1934);*/
|
|
|
+ principalLocationSignFirsts.add(principalLocationSignFirst);
|
|
|
+ actionUserSignFirst.setLocations(principalLocationSignFirsts);
|
|
|
+ actions.add(actionUserSignFirst);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //查询咨询员信息
|
|
|
+ if(null != projectReportSignatureInfo && StringUtils.isNotBlank(projectReportSignatureInfo.getConsultant())){
|
|
|
+ User user = UserUtils.get(projectReportSignatureInfo.getConsultant());
|
|
|
+ if(null != user) {
|
|
|
+ //获取成员印章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(2);
|
|
|
+ /*principalLocation.setOffsetX(0.7759);
|
|
|
+ principalLocation.setOffsetY(0.1934);*/
|
|
|
+ principalLocations.add(principalLocation);
|
|
|
+ actionUser.setLocations(principalLocations);
|
|
|
+ actions.add(actionUser);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//总经理
|
|
|
User technologyPrincipalUser = UserUtils.getByLoginName("陈红星");
|
|
|
if(null != technologyPrincipalUser){
|