From 023c22c3407871092ebe1f2f9db6f3072233a136 Mon Sep 17 00:00:00 2001 From: Eric Gao Date: Thu, 21 Mar 2024 11:54:26 +0800 Subject: [PATCH] remove unused method (#15743) Co-authored-by: xiangzihao <460888207@qq.com> --- .../dao/mapper/ProcessInstanceMapper.java | 16 -------------- .../dao/mapper/ProcessInstanceMapper.xml | 17 --------------- .../dao/mapper/ProcessInstanceMapperTest.java | 21 ------------------- 3 files changed, 54 deletions(-) diff --git a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.java b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.java index 509bf7ca4d..a0a81374f5 100644 --- a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.java +++ b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.java @@ -199,22 +199,6 @@ public interface ProcessInstanceMapper extends BaseMapper { @Param("endTime") Date endTime, @Param("testFlag") int testFlag); - /** - * query last running process instance - * - * @param definitionCode definitionCode - * @param startTime startTime - * @param endTime endTime - * @param testFlag testFlag - * @param stateArray stateArray - * @return process instance - */ - ProcessInstance queryLastRunningProcess(@Param("processDefinitionCode") Long definitionCode, - @Param("startTime") Date startTime, - @Param("endTime") Date endTime, - @Param("testFlag") int testFlag, - @Param("states") int[] stateArray); - /** * query last manual process instance * diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml index 80c008d0fd..baeb5f90a7 100644 --- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml +++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml @@ -206,23 +206,6 @@ order by end_time desc limit 1 -