This commit is contained in:
2025-02-24 19:12:16 +08:00
parent 35a644c5da
commit bb0d3d0146
10 changed files with 126 additions and 8 deletions

View File

@ -25,5 +25,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark"/>
</resultMap>
<!-- 消息类型统计(先分组再统计) -->
<select id="userMessageTypeStatistics" resultType="java.util.Map">
SELECT
message_large_type,
count( 1 ) as ct
FROM
wgz_message
WHERE
recipient_id = #{id}
AND recipient_type = "1"
AND read_status = "0"
GROUP BY
message_large_type
</select>
</mapper>
</mapper>