fix(接口测试): 修复场景用例报告按结束时间排序的缺陷
--bug=1012783 --user=王孝刚 【接口测试】接口测试-测试报告,case报告,结束时间排序只排了当前页面的数据 https://www.tapd.cn/55049933/s/1164891
This commit is contained in:
parent
6d45d28f70
commit
b08822252d
|
@ -123,8 +123,7 @@
|
|||
</select>
|
||||
<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,
|
||||
if (a_r.end_time + 0 > a_r.create_time + 0, a_r.end_time, a_r.create_time) as end_time,
|
||||
a_r.user_id,
|
||||
a_r.name,
|
||||
a_r.id,
|
||||
|
@ -183,9 +182,6 @@
|
|||
order by
|
||||
<foreach collection="request.orders" separator="," item="order">
|
||||
<choose>
|
||||
<when test="order.name == 'end_time' ">
|
||||
calc_end_time ${order.type}
|
||||
</when>
|
||||
<otherwise>
|
||||
`${order.name}` ${order.type}
|
||||
</otherwise>
|
||||
|
|
|
@ -140,18 +140,18 @@
|
|||
</sql>
|
||||
|
||||
<select id="list" resultMap="BaseResultMap">
|
||||
SELECT s_r.name AS test_name,
|
||||
s_r.end_time as end_time,
|
||||
s_r.user_id,
|
||||
s_r.name,
|
||||
s_r.id,
|
||||
s_r.project_id,
|
||||
s_r.create_time,
|
||||
s_r.update_time,
|
||||
s_r.status,
|
||||
s_r.trigger_mode,
|
||||
s_r.execute_type,
|
||||
s_r.report_type
|
||||
SELECT s_r.name AS test_name,
|
||||
if (s_r.end_time + 0 > s_r.create_time + 0, s_r.end_time, s_r.create_time) as end_time,
|
||||
s_r.user_id,
|
||||
s_r.name,
|
||||
s_r.id,
|
||||
s_r.project_id,
|
||||
s_r.create_time,
|
||||
s_r.update_time,
|
||||
s_r.status,
|
||||
s_r.trigger_mode,
|
||||
s_r.execute_type,
|
||||
s_r.report_type
|
||||
FROM api_scenario_report s_r
|
||||
<where>
|
||||
<if test="request.combine != null">
|
||||
|
@ -210,7 +210,7 @@
|
|||
<if test="request.orders != null and request.orders.size() > 0">
|
||||
order by
|
||||
<foreach collection="request.orders" separator="," item="order">
|
||||
s_r.${order.name} ${order.type}
|
||||
${order.name} ${order.type}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
|
|
Loading…
Reference in New Issue