From 783addce29b043139bf10091e5ccc4fba75d02da Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 30 Jun 2023 17:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=AE=A1=E4=BA=BA=E5=91=98=20?= =?UTF-8?q?=E5=92=8C=20=E8=87=AA=E5=8A=A8=E4=B8=8B=E4=B8=80=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/todocenter/manage/HandlerManage.java | 2 +- .../com/ningdatech/pmapi/cctask/CcTaskTest.java | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 pmapi/src/test/java/com/ningdatech/pmapi/cctask/CcTaskTest.java diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java index 07e15a2..0a159da 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java @@ -403,8 +403,8 @@ public class HandlerManage { updateWrapper.set(Project::getPretrialFileId,null) .set(Project::getPretrialFileName,null) .eq(Project::getId,declaredProject.getId()); + projectService.update(updateWrapper); } - projectService.update(updateWrapper); } /** diff --git a/pmapi/src/test/java/com/ningdatech/pmapi/cctask/CcTaskTest.java b/pmapi/src/test/java/com/ningdatech/pmapi/cctask/CcTaskTest.java new file mode 100644 index 0000000..ed6efcb --- /dev/null +++ b/pmapi/src/test/java/com/ningdatech/pmapi/cctask/CcTaskTest.java @@ -0,0 +1,34 @@ +package com.ningdatech.pmapi.cctask; + +import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.ningdatech.pmapi.AppTests; +import com.wflow.bean.entity.WflowCcTasks; +import com.wflow.service.WflowCcTasksService; +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * @Classname CcTaskTest + * @Description + * @Date 2023/6/30 16:52 + * @Author PoffyZhang + */ +public class CcTaskTest extends AppTests { + + @Autowired + private WflowCcTasksService wflowCcTasksService; + + @Test + public void test(){ + String nodeId = "node_649e9620711424df271ba98c"; + String instanceId = "72fffd9c-1722-11ee-b7f5-02426daa406d"; + List ccTasks = wflowCcTasksService.list(Wrappers.lambdaQuery(WflowCcTasks.class) + .eq(WflowCcTasks::getNodeId,nodeId) + .eq(WflowCcTasks::getInstanceId,instanceId)); + System.out.println(JSON.toJSONString(ccTasks)); + } + +}