pad接口-退货单查询排序方式调整:已完结单子放到最后,之后根据操作时间倒序
This commit is contained in:
parent
56b3d54ddd
commit
b624b8d2cb
|
|
@ -33,6 +33,11 @@
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
CASE
|
||||||
|
WHEN main.status IN ('0', '1') THEN 1
|
||||||
|
WHEN main.status IN ('2') THEN 2
|
||||||
|
ELSE 3
|
||||||
|
END ASC,
|
||||||
GREATEST(
|
GREATEST(
|
||||||
COALESCE(main.update_time, '1970-01-01 00:00:00'),
|
COALESCE(main.update_time, '1970-01-01 00:00:00'),
|
||||||
COALESCE(main.create_time, '1970-01-01 00:00:00')
|
COALESCE(main.create_time, '1970-01-01 00:00:00')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue