|
@@ -197,7 +197,7 @@
|
|
|
|
|
|
<select id="queryCountOfUnread" resultMap="Mapper" parameterType="map">
|
|
|
SELECT group_ key_,COUNT(*) value_ FROM sys_message
|
|
|
- WHERE user_id_ = #{userId} AND read_status_ = 0 and status_ = 2
|
|
|
+ WHERE user_id_ = #{userId} AND read_status_ = 0
|
|
|
AND (client_id_ = #{jpushType} OR client_id_ IS NULL) and send_time_ <= now()
|
|
|
<if test="type != null">
|
|
|
and type_ = #{type}
|