Quellcode durchsuchen

流程发起人撤回判断修改

master
CMM vor 1 Jahr
Ursprung
Commit
22b035fdb7
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. +6
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java

+ 6
- 2
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java Datei anzeigen

@@ -7,6 +7,7 @@ import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant;
import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO;
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails;
import com.ningdatech.pmapi.user.util.LoginUserUtil;
import com.wflow.contants.HisProInsEndActId;
import com.wflow.workflow.bean.dto.ReqProcessHandlerDTO;
import com.wflow.workflow.bean.process.ProgressNode;
import com.wflow.workflow.bean.process.enums.NodeTypeEnum;
@@ -23,6 +24,7 @@ import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
* @Classname WithDrawHandle
@@ -212,9 +214,11 @@ public class WithDrawHandle {
.processInstanceId(instance.getId()).finished()
.activityType(TodoCenterContant.Handler.ACTIVITY_APPROVAL)
.orderByHistoricActivityInstanceEndTime().asc().list();

List<HistoricActivityInstance> instances = finished.stream()
.filter(a -> !HisProInsEndActId.WITHDRAW.equals(a.getDeleteReason()))
.collect(Collectors.toList());
//如果有已经被审核过的 节点 返回false
if(CollUtil.isNotEmpty(finished)){
if(CollUtil.isNotEmpty(instances)){
return Boolean.FALSE;
}



Laden…
Abbrechen
Speichern