Browse Source

bug

release_toaliyun_real
xhxu 5 years ago
parent
commit
d81dd24432
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      mallinkService/src/main/resources/mapper/WxCUserMapper.xml

+ 2
- 5
mallinkService/src/main/resources/mapper/WxCUserMapper.xml View File

@@ -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 &gt; 0
where msg_count &gt; 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}


Loading…
Cancel
Save