diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 5031bfc3de..975891dcf4 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -850,7 +850,7 @@ status = 'Trash', delete_time = #{request.deleteTime}, delete_user_id = #{request.deleteUserId} - where id = #{request.id} + where ref_id = (select a.ref_id from (select ref_id from test_case where id = #{request.id}) a )