Commit 08b45b4e by 徐高华

sql

parent 76de39f3
......@@ -147,8 +147,7 @@
SELECT
<include refid="Base_Column_List" />
FROM tab_haoban_group_chat WHERE group_chat_id in
<foreach collection="idList" item="id" index="index" open="("
close=")" separator=",">
<foreach collection="idList" item="id" index="index" open="(" close=")" separator=",">
#{id}
</foreach>
and delete_flag = 0
......@@ -171,8 +170,14 @@
</select>
<update id="updateChatEnterpriseId">
update tab_haoban_group_chat set enterprise_id = #{enterpriseId} where wx_enterprise_id=#{wxEnterpriseId}
<if test="null "></if>
update tab_haoban_group_chat set enterprise_id = #{enterpriseId} , update_time=now() where wx_enterprise_id=#{wxEnterpriseId}
<if test="null != groupChatIdList and groupChatIdList.size > 0">
and group_chat_id
<foreach collection="groupChatIdList" item="id" index="index" separator="," open="(" close=")">
#{id}
</foreach>
</if>
and delete_flag = 0 and enterprise_id is null
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment