|
@@ -979,6 +979,7 @@ public class ProjectReportSignatureWorkService extends CrudService<ProjectReport
|
|
|
* @param dailyOfficeWorkId
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Transactional(readOnly = false)
|
|
|
public HashMap<String, Object> getManualSignatureUrl( String dailyOfficeWorkId, ReportSignature signature) {
|
|
|
HashMap<String, Object> map = Maps.newHashMap();
|
|
|
map.put("contractUrl","");
|
|
@@ -1326,6 +1327,7 @@ public class ProjectReportSignatureWorkService extends CrudService<ProjectReport
|
|
|
reportSignature.setStatus(3);
|
|
|
reportSignature.preUpdate();
|
|
|
dao.updateReportSignature(reportSignature);
|
|
|
+ dao.updateReportSignatureSignature(reportSignature);
|
|
|
|
|
|
}catch (ActivitiObjectNotFoundException e){
|
|
|
System.err.println("签章申请撤销异常,因为这个流程已不存在!");
|
|
@@ -1389,6 +1391,7 @@ public class ProjectReportSignatureWorkService extends CrudService<ProjectReport
|
|
|
reportSignature.setStatus(3);
|
|
|
reportSignature.preUpdate();
|
|
|
dao.updateApprovalSignature(reportSignature);
|
|
|
+ dao.updateApprovalSignatureSignature(reportSignature);
|
|
|
|
|
|
}catch (ActivitiObjectNotFoundException e){
|
|
|
System.err.println("签章申请撤销异常,因为这个流程已不存在!");
|
|
@@ -1939,6 +1942,11 @@ public class ProjectReportSignatureWorkService extends CrudService<ProjectReport
|
|
|
vars.put("passs", false);
|
|
|
user = createUser;
|
|
|
workActivityProcess.setIsApproval("2");
|
|
|
+ //修改签章数据信息
|
|
|
+ dao.updateReportSignatureSignature(projectReportSignature);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -1970,6 +1978,24 @@ public class ProjectReportSignatureWorkService extends CrudService<ProjectReport
|
|
|
workActivityProcess.setIsApproval("1");
|
|
|
vars.put("pass",true);
|
|
|
vars.put("passs",true);
|
|
|
+ approval.setSignatureType("2");
|
|
|
+ //发起签章申请
|
|
|
+ HashMap<String, Object> map = this.getManualSignatureUrl(projectReportSignature.getSignatureId() ,approval);
|
|
|
+ Boolean success = (Boolean) map.get("success");
|
|
|
+ //如果数据报错,则数据撤回到暂存环节
|
|
|
+ if(!success){
|
|
|
+ //如果发起签章不正确,则需要将已发起的流程撤回 并调整为暂存状态
|
|
|
+ if (projectReportSignature.getSignatureType().equals("1")){
|
|
|
+ //报告撤回
|
|
|
+ this.cancelInvalidate(projectReportSignature);
|
|
|
+ }else {
|
|
|
+ //审定单撤回
|
|
|
+ this.cancelInvalidateApproval(projectReportSignature);
|
|
|
+ }
|
|
|
+ String message = (String) map.get("str");
|
|
|
+ return message;
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
workActivityProcess.setIsApproval("2");
|
|
|
projectReportSignature.setStatus(ProjectStatusEnum.RECALL.getValue());
|