Bladeren bron

优化 撤回处理的代码

tags/24080901
PoffyZhang 1 jaar geleden
bovenliggende
commit
c03a52bbdd
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  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 Bestand weergeven

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



Laden…
Annuleren
Opslaan