xhxu 5 лет назад
Родитель
Сommit
d81dd24432
1 измененных файлов: 2 добавлений и 5 удалений
  1. +2
    -5
      mallinkService/src/main/resources/mapper/WxCUserMapper.xml

+ 2
- 5
mallinkService/src/main/resources/mapper/WxCUserMapper.xml Просмотреть файл

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


Загрузка…
Отмена
Сохранить