diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseScheduleMapper.xml b/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseScheduleMapper.xml
index 8329338cd6..f2d0187088 100644
--- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseScheduleMapper.xml
+++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/base/mapper/ext/BaseScheduleMapper.xml
@@ -55,10 +55,10 @@
SELECT COUNT(id) AS countNumber
FROM `schedule`
WHERE resource_id IN (
- SELECT scene.id
- FROM api_scenario scene
- WHERE scene.project_id = #{projectId,jdbcType=VARCHAR}
- AND scene.status != 'Trash'
+ SELECT scene.id
+ FROM api_scenario scene
+ WHERE scene.project_id = #{projectId,jdbcType=VARCHAR}
+ AND scene.status != 'Trash'
AND version_id = #{versionId}
@@ -66,29 +66,29 @@
AND latest = 1
)
- AND create_time BETWEEN #{startTime} AND #{endTime}
+ AND create_time BETWEEN #{startTime} AND #{endTime}