|
|
|
@@ -242,7 +242,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateMsgCount" parameterType="com.iformall.domain.po.WxCUser"> |
|
|
|
update wx_c_user set msg_count = msg_count+1 |
|
|
|
update wx_c_user set msg_count = msg_count+2 |
|
|
|
where 1=1 |
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
@@ -260,13 +260,10 @@ |
|
|
|
|
|
|
|
<update id="updateMsgCountDown" parameterType="list"> |
|
|
|
update wx_c_user set msg_count = msg_count-1 |
|
|
|
where msg_count > 0 |
|
|
|
where msg_count > 0updateMsgCountDown |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and `parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
and `open_id` in |
|
|
|
<foreach collection="openId" index="index" item="openId" open="(" separator="," close=")" > |
|
|
|
#{openId} |
|
|
|
|