Browse Source

优化 撤回处理的代码

tags/24080901
PoffyZhang 1 year ago
parent
commit
c03a52bbdd
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java

+ 4
- 2
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java View File

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



Loading…
Cancel
Save