fix(任务中心): 查询排序优化,按时间排序

This commit is contained in:
fit2-zhao 2021-07-20 19:04:48 +08:00 committed by fit2-zhao
parent 1db7049dd1
commit 120ce28f47
1 changed files with 1 additions and 4 deletions

View File

@ -44,14 +44,11 @@
<if test="request.executionStatus != null and request.executionStatus != ''">
and t.status = #{request.executionStatus}
</if>
<if test="request.executor != null and request.executor != ''">
and t1.name = #{request.executor}
</if>
<if test="request.executor != null and request.executor != ''">
and t.user_id = #{request.executor}
</if>
)
)tt ORDER BY FIELD(tt.executionStatus, 'Running', 'Waiting', 'Error', 'Success'),tt.executionTime DESC;
)tt ORDER BY tt.executionTime DESC;
</select>