diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.java b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.java index caaf79d16d..6a0b728cad 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.java @@ -19,4 +19,6 @@ public interface ExtFunctionalCaseMapper { List getFunctionalCaseByRefId(@Param("refId") String refId); List getFunctionalCaseIds(@Param("projectId") String projectId); + + void removeToTrashByModuleIds(@Param("moduleIds") List deleteIds); } diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml index 0e97cf373f..eee809f23f 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml @@ -56,4 +56,11 @@ WHERE project_id = #{projectId} + + + UPDATE functional_case SET deleted = true WHERE module_id IN + + #{id} + + \ No newline at end of file diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.java b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.java index 90e99d235e..2563d7847f 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.java @@ -1,6 +1,5 @@ package io.metersphere.functional.mapper; -import io.metersphere.functional.domain.FunctionalCaseModule; import io.metersphere.project.dto.NodeSortQueryParam; import io.metersphere.system.dto.sdk.BaseModule; import io.metersphere.system.dto.sdk.BaseTreeNode; @@ -11,26 +10,14 @@ import java.util.List; public interface ExtFunctionalCaseModuleMapper { List selectBaseByProjectId(String projectId); - List selectIdAndParentIdByProjectId(String projectId); - List selectChildrenIdsByParentIds(@Param("ids") List deleteIds); List selectChildrenIdsSortByPos(String parentId); - void removeToTrashByIds(@Param("ids") List deleteId); + void removeToTrashByIds(@Param("ids") List deleteIds); Long getMaxPosByParentId(String parentId); - List selectIdsByProjectId(String projectId); - - FunctionalCaseModule getLastModuleByParentId(String id); - - FunctionalCaseModule getNextModuleInParentId(@Param("parentId") String parentId, @Param("pos") long pos); - - FunctionalCaseModule getPreviousModuleInParentId(@Param("parentId") String parentId, @Param("pos") long pos); - - String selectNameById(String moduleId); - BaseModule selectBaseModuleById(String dragNodeId); BaseModule selectModuleByParentIdAndPosOperator(NodeSortQueryParam nodeSortQueryParam); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.xml index d4cbb55b30..cac09fa909 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseModuleMapper.xml @@ -41,12 +41,12 @@ #{id} - + UPDATE functional_case_module SET deleted = true WHERE id IN #{id} - +