Skip to content

Commit

Permalink
refactor: 调整部分 SQL 语句,以兼容 PostgreSQL 数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Feb 18, 2024
1 parent 0f39384 commit 9f5049b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
COUNT(t1.message_id)
FROM sys_message_user AS t1
LEFT JOIN sys_message AS t2 ON t2.id = t1.message_id
WHERE t1.user_id = #{userId} AND t1.is_read = 0
WHERE t1.user_id = #{userId} AND t1.is_read = false
<if test="type != null">
AND t2.type = #{type}
</if>
Expand Down

0 comments on commit 9f5049b

Please sign in to comment.