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