|
|
@@ -10,7 +10,9 @@ import java.util.stream.Stream; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.manage.DeclaredProjectManage; |
|
|
|
import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant; |
|
|
|
import com.ningdatech.pmapi.todocenter.handle.WithDrawHandle; |
|
|
|
import com.ningdatech.pmapi.todocenter.model.vo.TodoNumVO; |
|
|
|
import com.wflow.workflow.enums.ProcessHandlerEnum; |
|
|
@@ -24,6 +26,7 @@ import org.flowable.engine.history.HistoricProcessInstance; |
|
|
|
import org.flowable.engine.runtime.ActivityInstance; |
|
|
|
import org.flowable.engine.runtime.ActivityInstanceQuery; |
|
|
|
import org.flowable.engine.task.Comment; |
|
|
|
import org.flowable.task.api.Task; |
|
|
|
import org.flowable.variable.api.history.HistoricVariableInstance; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.mock.web.MockMultipartFile; |
|
|
@@ -309,6 +312,11 @@ public class TodoCenterManage { |
|
|
|
* @since 2023/02/01 |
|
|
|
*/ |
|
|
|
public String handler(ReqProcessHandlerDTO param) { |
|
|
|
//前置判断前端传的taskId是否存在不存在的情况 有可能是 或签被别人审批掉了 |
|
|
|
Task task = taskService.createTaskQuery().taskId(param.getTaskId()).active().singleResult(); |
|
|
|
if (ObjectUtil.isNull(task)) { |
|
|
|
return TodoCenterContant.Handler.TASKID_ERROR; |
|
|
|
} |
|
|
|
// 获取登录用户ID |
|
|
|
UserFullInfoDTO user = userInfoHelper.getUserFullInfo(LoginUserUtil.getUserId()); |
|
|
|
// 获取登录用户浙政钉code |
|
|
|