Ver código fonte

优化 撤回处理的代码

master
PoffyZhang 1 ano atrás
pai
commit
c03a52bbdd
1 arquivos alterados com 4 adições e 2 exclusões
  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 Ver arquivo

@@ -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;
}



Carregando…
Cancelar
Salvar