mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 12:29:36 +08:00
修改小程序预约记录中的排序-20250522实现:① 默认排序规则:页面默认按「日期+ 时段 + 楼层」顺序排列,示例如下:日期:5 月 15 日(当天日期);上午时段:按楼层顺序排列(如101 会议室、102 会议室);下午时段:延续楼层顺序逻辑,保持一致排列规则。
This commit is contained in:
parent
70b6ba8ace
commit
472c137cff
@ -123,7 +123,15 @@
|
||||
<if test="ext1 != null and ext1 != ''"> AND mr.ext1 is null</if>
|
||||
<choose>
|
||||
<when test="sort != null and sort == 'create'"> order by mr.create_time desc,status</when>
|
||||
<otherwise> order by start desc,status</otherwise>
|
||||
<otherwise>
|
||||
/* 按距离当前日期的接近程度排序,最接近的在前面 */
|
||||
order by ABS(DATEDIFF(DATE(start), CURDATE())),
|
||||
/* 按时间段早晚排序,最早的排在前面 */
|
||||
TIME(start) ASC,
|
||||
/* 按会议室编号排序 */
|
||||
room_num + 0 ASC,
|
||||
status
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user