瀏覽代碼

Merge remote-tracking branch 'origin/master'

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
6669af8b83
共有 1 個檔案被更改,包括 6 行新增2 行删除
  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 查看文件

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



Loading…
取消
儲存