fix(接口测试): case报告,结束时间排序问题
--bug=1012783 --user=李玉号 【接口测试】接口测试-测试报告,case报告,结束时间排序只排了当前页面的数据 https://www.tapd.cn/55049933/s/1164606
This commit is contained in:
parent
a37a54ff63
commit
63fe493af1
|
@ -124,6 +124,7 @@
|
|||
<select id="list" resultType="io.metersphere.base.domain.ApiDefinitionExecResultExpand">
|
||||
SELECT a_r.name AS test_name,
|
||||
a_r.end_time as end_time,
|
||||
if (a_r.end_time + 0 > a_r.create_time + 0, a_r.end_time, a_r.create_time) as calc_end_time,
|
||||
a_r.user_id,
|
||||
a_r.name,
|
||||
a_r.id,
|
||||
|
@ -181,7 +182,14 @@
|
|||
<if test="request.orders != null and request.orders.size() > 0">
|
||||
order by
|
||||
<foreach collection="request.orders" separator="," item="order">
|
||||
${order.name} ${order.type}
|
||||
<choose>
|
||||
<when test="order.name == 'end_time' ">
|
||||
calc_end_time ${order.type}
|
||||
</when>
|
||||
<otherwise>
|
||||
`${order.name}` ${order.type}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue