fix(接口测试): 接口测试首页定时任务表格增加按照修改时间排序功能

--bug=1025104 --user=宋天阳 【接口测试】接口测试首页-运行中的定时任务列表排序没有规则
https://www.tapd.cn/55049933/s/1359129
This commit is contained in:
song-tianyang 2023-04-04 12:13:36 +08:00 committed by fit2-zhao
parent 9b9e11ff2b
commit 8b350b9fe0
1 changed files with 33 additions and 31 deletions

View File

@ -126,7 +126,6 @@
)
WHERE sch.`enable` = true
AND sch.project_id = #{projectId,jdbcType=VARCHAR}
<if test="versionId != null">
AND (
sch.group IN ('SWAGGER_IMPORT')
@ -137,8 +136,11 @@
<if test="versionId == null">
AND sch.group IN ('API_SCENARIO_TEST','SWAGGER_IMPORT')
</if>
ORDER BY sch.update_time DESC
</select>
<update id="updateNameByResourceID">
update schedule set name = #{name} where resource_id = #{resourceId}
update schedule
set name = #{name}
where resource_id = #{resourceId}
</update>
</mapper>