|
@@ -14,6 +14,7 @@ import com.wflow.workflow.bean.vo.ProcessProgressVo; |
|
|
import com.wflow.workflow.enums.ProcessStatusEnum; |
|
|
import com.wflow.workflow.enums.ProcessStatusEnum; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.assertj.core.util.Lists; |
|
|
import org.assertj.core.util.Lists; |
|
|
import org.flowable.engine.HistoryService; |
|
|
import org.flowable.engine.HistoryService; |
|
|
import org.flowable.engine.history.HistoricActivityInstance; |
|
|
import org.flowable.engine.history.HistoricActivityInstance; |
|
@@ -193,10 +194,11 @@ public class WithDrawHandle { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public boolean canRootWithDraw(HistoricProcessInstance instance) { |
|
|
public boolean canRootWithDraw(HistoricProcessInstance instance) { |
|
|
Long userId = LoginUserUtil.getUserId(); |
|
|
|
|
|
|
|
|
String employeeCode = LoginUserUtil.loginUserDetail().getEmployeeCode(); |
|
|
String startUserId = instance.getStartUserId(); |
|
|
String startUserId = instance.getStartUserId(); |
|
|
//如果流程发起人 不是 当前登录人 直接返回false |
|
|
//如果流程发起人 不是 当前登录人 直接返回false |
|
|
if(!userId.equals(startUserId)){ |
|
|
|
|
|
|
|
|
if(StringUtils.isBlank(employeeCode) || StringUtils.isBlank(startUserId) |
|
|
|
|
|
|| !employeeCode.equals(startUserId)){ |
|
|
return Boolean.FALSE; |
|
|
return Boolean.FALSE; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|