fix(测试跟踪): 功能用例导出乱序问题

--bug=1018268 --user=宋昌昌 【测试跟踪】github#18375,功能用例导出为excel用例,导出后乱序不是按照id排序 https://www.tapd.cn/55049933/s/1265608
This commit is contained in:
song-cc-rock 2022-10-18 11:08:38 +08:00 committed by jianxing
parent 567b1de109
commit 0e754aa3a1
1 changed files with 4 additions and 4 deletions

View File

@ -341,7 +341,7 @@
</select>
<select id="listByTestCaseIds" resultType="io.metersphere.dto.TestCaseDTO">
select test_case.*,api_test.name as apiName,load_test.name AS performName from test_case left join api_test on
select test_case.*, api_test.name as apiName, load_test.name AS performName from test_case left join api_test on
test_case.test_id=api_test.id left join load_test on test_case.test_id=load_test.id
<where>
<if test="request.ids!=null and request.ids.size() > 0">
@ -354,10 +354,10 @@
and test_case.project_id=#{request.projectId}
</if>
</where>
<if test="request.orders != null and request.orders.size() > 0">
<if test="request.condition.orders != null and request.condition.orders.size() > 0">
order by
<foreach collection="request.orders" separator="," item="order">
`${order.name}` ${order.type}
<foreach collection="request.condition.orders" separator="," item="order">
test_case.`${order.name}` ${order.type}
</foreach>
</if>
</select>