修复租户查询列表时,将新发送的信息用户置为最上方
This commit is contained in:
parent
338cf62e71
commit
c18abfbabc
@ -23,6 +23,6 @@ spring:
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
logging:
|
||||
level:
|
||||
com.xhpc.board.mapper: debug
|
||||
#logging:
|
||||
# level:
|
||||
# com.xhpc.board.mapper: debug
|
||||
@ -53,6 +53,7 @@
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
new_info_time,
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="tenantId != null">
|
||||
@ -76,11 +77,13 @@
|
||||
<if test="delFlag != null">
|
||||
#{delFlag,jdbcType=BOOLEAN},
|
||||
</if>
|
||||
now(),
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateHaveNewInfoFiledByUserCondition">
|
||||
UPDATE xhpc_message_board_receive_user
|
||||
SET have_new_info = 0
|
||||
SET have_new_info = 0,
|
||||
new_info_time = now()
|
||||
WHERE tenant_type = #{tenantType}
|
||||
AND tenant_id = #{tenantId}
|
||||
AND sender_account = #{senderAccount}
|
||||
@ -137,7 +140,7 @@
|
||||
<if test="senderAccount!=null and senderAccount!=''">
|
||||
AND sender_account = #{senderAccount}
|
||||
</if>
|
||||
ORDER BY have_new_info DESC
|
||||
ORDER BY new_info_time desc,have_new_info DESC
|
||||
LIMIT #{currentPage},#{items}
|
||||
</select>
|
||||
<select id="totalUserNumber" resultType="java.lang.Long">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user