pad接口-请领单排序方式调整:将作废单、完结单放到最后,进行中状态的单子放到前面,之后再按照最新操作的倒序
This commit is contained in:
parent
7311873e35
commit
002bb0e1df
|
|
@ -76,6 +76,11 @@
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
CASE
|
||||||
|
WHEN main.status IN ('1', '3', '4') THEN 1
|
||||||
|
WHEN main.status IN ('2', '5') 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