调整请领单查询接口:按照create_time/update_time取最大后排序(把最新变更状态的单子放前面)
This commit is contained in:
parent
7ddc0ef0df
commit
4852e43705
|
|
@ -47,11 +47,10 @@
|
|||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
CASE
|
||||
WHEN main.update_time IS NULL THEN 0
|
||||
ELSE 1
|
||||
END ASC,
|
||||
COALESCE(main.update_time, '1970-01-01 00:00:00') DESC,
|
||||
GREATEST(
|
||||
COALESCE(main.update_time, '1970-01-01 00:00:00'),
|
||||
COALESCE(main.create_time, '1970-01-01 00:00:00')
|
||||
) DESC,
|
||||
main.create_time DESC
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue