This commit is contained in:
wenyann 2020-07-08 14:56:46 +08:00
parent 2510d7d2db
commit 16c7044b25
1 changed files with 2 additions and 2 deletions

View File

@ -54,14 +54,14 @@
</if>
</select>
<select id="listByMethod" resultType="io.metersphere.track.dto.TestCaseDTO">
SELECT id,name,status,project_id,type from api_test
SELECT id,name,status,project_id,"api" as type from api_test
<where>
<if test="request.projectId!=null">
and project_id=#{request.projectId}
</if>
</where>
UNION ALL
select id,name,status,project_id,type from load_test
select id,name,status,project_id,"perform" as type from load_test
<where>
<if test="request.projectId!=null">
and project_id= #{request.projectId}