|
@@ -51,7 +51,7 @@ public class WithDrawHandle { |
|
|
* @param progressInstanceDetail |
|
|
* @param progressInstanceDetail |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public Boolean checkCanWithdraw(String instanceId, ProcessProgressVo progressInstanceDetail) { |
|
|
|
|
|
|
|
|
public Boolean checkCanWithdraw(String instanceId, ProcessProgressVo progressInstanceDetail,String taskId) { |
|
|
HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery() |
|
|
HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery() |
|
|
.processInstanceId(instanceId).singleResult(); |
|
|
.processInstanceId(instanceId).singleResult(); |
|
|
UserInfoDetails userInfoDetails = LoginUserUtil.loginUserDetail(); |
|
|
UserInfoDetails userInfoDetails = LoginUserUtil.loginUserDetail(); |
|
@@ -66,7 +66,9 @@ public class WithDrawHandle { |
|
|
if (Boolean.TRUE.equals(userIsRoot) && canRootWithDraw(historicProcessInstance, employeeCode)){ |
|
|
if (Boolean.TRUE.equals(userIsRoot) && canRootWithDraw(historicProcessInstance, employeeCode)){ |
|
|
return Boolean.TRUE; |
|
|
return Boolean.TRUE; |
|
|
} |
|
|
} |
|
|
return checkUserIsBefore(progressInstanceDetail.getProgressInfo(),null); |
|
|
|
|
|
|
|
|
ReqProcessHandlerDTO dto = new ReqProcessHandlerDTO(); |
|
|
|
|
|
dto.setTaskId(taskId); |
|
|
|
|
|
return checkUserIsBefore(progressInstanceDetail.getProgressInfo(),dto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 判断当前操作人 是上一个节点的审批人 |
|
|
// 判断当前操作人 是上一个节点的审批人 |
|
|