修复租户查询列表时,将新发送的信息用户置为最上方

This commit is contained in:
wen 2022-01-25 15:11:25 +08:00
parent 338cf62e71
commit c18abfbabc
2 changed files with 8 additions and 5 deletions

View File

@ -23,6 +23,6 @@ spring:
# 共享配置 # 共享配置
shared-configs: shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
logging: #logging:
level: # level:
com.xhpc.board.mapper: debug # com.xhpc.board.mapper: debug

View File

@ -53,6 +53,7 @@
<if test="delFlag != null"> <if test="delFlag != null">
del_flag, del_flag,
</if> </if>
new_info_time,
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="tenantId != null"> <if test="tenantId != null">
@ -76,11 +77,13 @@
<if test="delFlag != null"> <if test="delFlag != null">
#{delFlag,jdbcType=BOOLEAN}, #{delFlag,jdbcType=BOOLEAN},
</if> </if>
now(),
</trim> </trim>
</insert> </insert>
<update id="updateHaveNewInfoFiledByUserCondition"> <update id="updateHaveNewInfoFiledByUserCondition">
UPDATE xhpc_message_board_receive_user UPDATE xhpc_message_board_receive_user
SET have_new_info = 0 SET have_new_info = 0,
new_info_time = now()
WHERE tenant_type = #{tenantType} WHERE tenant_type = #{tenantType}
AND tenant_id = #{tenantId} AND tenant_id = #{tenantId}
AND sender_account = #{senderAccount} AND sender_account = #{senderAccount}
@ -137,7 +140,7 @@
<if test="senderAccount!=null and senderAccount!=''"> <if test="senderAccount!=null and senderAccount!=''">
AND sender_account = #{senderAccount} AND sender_account = #{senderAccount}
</if> </if>
ORDER BY have_new_info DESC ORDER BY new_info_time desc,have_new_info DESC
LIMIT #{currentPage},#{items} LIMIT #{currentPage},#{items}
</select> </select>
<select id="totalUserNumber" resultType="java.lang.Long"> <select id="totalUserNumber" resultType="java.lang.Long">