Browse Source

流程发起人撤回判断修改

tags/24080901
CMM 1 year ago
parent
commit
22b035fdb7
1 changed files with 6 additions and 2 deletions
  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 View File

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


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


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

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




Loading…
Cancel
Save