Commit 69dc7a6e authored by 刘凡's avatar 刘凡

优化:移装变更 撤回后是否可编辑的逻辑

parent a1a5a27b
...@@ -415,6 +415,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -415,6 +415,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
jsonObject.put("nextTaskId", jgTransfer.getNextTaskId()); jsonObject.put("nextTaskId", jgTransfer.getNextTaskId());
jsonObject.put("nextExecuteUser", jgTransfer.getNextExecutorIds()); jsonObject.put("nextExecuteUser", jgTransfer.getNextExecutorIds());
jsonObject.put("taskType", BusinessTypeEnum.JG_CHANGE_REGISTRATION.getCode()); jsonObject.put("taskType", BusinessTypeEnum.JG_CHANGE_REGISTRATION.getCode());
// 判断撤回后当前的节点,如果当前节点为提交节点则页面可编辑
jsonObject.put("pageType",this.getPageTypeByCurrentNode(jgTransfer.getAuditStatus()));
commonService.rollbackTask(instanceId, jsonObject); commonService.rollbackTask(instanceId, jsonObject);
} }
...@@ -1118,4 +1120,17 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1118,4 +1120,17 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
} }
return code == null ? contract.getReceiveOrgCode() : code; return code == null ? contract.getReceiveOrgCode() : code;
} }
private String getPageTypeByCurrentNode(String auditStatus) {
if(WorkFlowStatusEnum.TRANSFER_SUBMIT.getPass().equals(auditStatus) ||
WorkFlowStatusEnum.TRANSFER_SUBMIT.getReject().equals(auditStatus) ||
WorkFlowStatusEnum.TRANSFER_SUBMIT.getRollBack().equals(auditStatus)
){
// urlInfo.json 文件的 pageType
return "edit";
} else {
// urlInfo.json 文件的 pageType
return "look";
}
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment