From afe86cdfb7ba08ba380d5a76cf9d331252ada476 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 13 Mar 2023 11:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E8=81=94=E5=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectdeclared/manage/ReviewByDeptJointManage.java | 4 ++-- .../com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java index 5b91655..e21371f 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java @@ -63,8 +63,8 @@ public class ReviewByDeptJointManage { */ @Transactional(rollbackFor = Exception.class) public Boolean startTheProcess(Project project) { - Long userId = LoginUserUtil.getUserId(); - VUtils.isTrue(Objects.isNull(userId)).throwMessage("获取登录用户失败!"); + //这里是任务发起的 所以用项目发起人 + Long userId = project.getSponsor(); VUtils.isTrue(Objects.isNull(project.getId())).throwMessage("提交失败 缺少项目ID!"); Project projectInfo = projectService.getById(project.getId()); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java index be813f4..8865be1 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/ProjectStatusFlowTask.java @@ -82,7 +82,7 @@ public class ProjectStatusFlowTask { projectStagingService.removeById(projectStaging); } }catch (Exception e){ - log.error("项目流转 异常 projectId:【" + projectStaging.getProjectId() + "】 异常内容:" + e); + log.error("项目流转 异常 projectId:【" + projectStaging.getProjectId() + "】 异常内容:" + e.getMessage()); }finally { //增加重试的次数 和下次扫描时间 projectStagingService.addRetryTimes(projectStaging);