Skip to content

Commit

Permalink
fix(任务中心): 查询排序优化,按时间排序
Browse files Browse the repository at this point in the history
  • Loading branch information
fit2-zhao committed Jul 20, 2021
1 parent 1db7049 commit 120ce28
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>


Expand Down

0 comments on commit 120ce28

Please sign in to comment.