消息模块,历史消息按推送时间排序

This commit is contained in:
username 2024-09-25 16:15:11 +08:00
parent 90386c59a5
commit 5eea8dfb96
1 changed files with 7 additions and 5 deletions

View File

@ -94,14 +94,15 @@
<if test="sourceModelName != null and sourceModelName != ''"> and log.source_model_name = #{sourceModelName} </if>
<if test="state != null"> and log.state = #{state} </if>
<if test="resultMessage != null and resultMessage != ''"> and log.result_message = #{resultMessage} </if>
<if test="appId != null and appId != ''" > and app_id = #{appId} </if>
<if test="appId != null and appId != ''" > and i.app_id = #{appId} </if>
and log.sts='Y'
and p1.sts='Y'
and p2.sts='Y'
and i.sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
<!-- <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>-->
<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
order by log.send_datetime desc
</select>
<!-- 查询符合条件的数量 -->
@ -178,8 +179,9 @@
and p2.sts='Y'
and app.sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
<!-- <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>-->
<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
order by log.send_datetime desc
</select>
<!-- 查询列表 字段采用or格式 -->