Browse Source

bug

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

+ 1
- 1
mallinkService/src/main/java/com/iformall/mapper/WxCUserMapper.java View File

@@ -39,5 +39,5 @@ public interface WxCUserMapper extends CommonMapper<WxCUser, Long> {

void updateMsgCount(WxCUser user);

void updateMsgCountDown(@Param("tenantId")String tenantId, @Param("openId")String[] split);
void updateMsgCountDown(@Param("tenantId")String tenantId, @Param("array")String[] split);
}

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

@@ -258,14 +258,14 @@
</if>
</update>

<update id="updateMsgCountDown" parameterType="list">
<update id="updateMsgCountDown">
update wx_c_user set msg_count = msg_count-1
where msg_count &gt; 0
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
</if>
and `open_id` in
<foreach collection="openId" index="index" item="openId" open="(" separator="," close=")" >
<foreach collection="array" item="openId" open="(" separator="," close=")" >
#{openId}
</foreach>
</update>


Loading…
Cancel
Save