🐛 消息中心排序问题优化,未读消息优先展示
This commit is contained in:
parent
0f1262fbfa
commit
0652405281
@ -29,7 +29,7 @@
|
|||||||
select * from forest_notification where has_read = '0' and id_user = #{idUser} order by created_time desc
|
select * from forest_notification where has_read = '0' and id_user = #{idUser} order by created_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectNotifications" resultMap="DTOResultMapper">
|
<select id="selectNotifications" resultMap="DTOResultMapper">
|
||||||
select * from forest_notification where id_user = #{idUser} order by created_time desc
|
select * from forest_notification where id_user = #{idUser} order by has_read,created_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectNotification" resultMap="BaseResultMapper">
|
<select id="selectNotification" resultMap="BaseResultMapper">
|
||||||
select * from forest_notification where id_user = #{idUser} and data_id = #{dataId} and data_type = #{dataType}
|
select * from forest_notification where id_user = #{idUser} and data_id = #{dataId} and data_type = #{dataType}
|
||||||
|
Loading…
Reference in New Issue
Block a user