diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseProjectMapper.xml b/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseProjectMapper.xml index 1f6669301d..9e35f83c8d 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseProjectMapper.xml +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseProjectMapper.xml @@ -259,6 +259,10 @@ UNION SELECT project_id FROM load_test_report + WHERE id = #{resourceId} + UNION + SELECT project_id + FROM api_test_environment WHERE id = #{resourceId}) LIMIT 1