Commit a52cf3d3 by 徐高华

退群查询

parent 68b972e4
......@@ -197,13 +197,16 @@
left join tab_haoban_staff c on b.staff_id = c.staff_id
</otherwise>
</choose>
where a.wx_enterprise_id = #{wxEnterpriseId} and a.delete_flag = 0
where a.wx_enterprise_id = #{wxEnterpriseId} and a.enterprise_id = #{enterpriseId} and a.delete_flag = 0
<if test="null != groupChatId">
and a.group_chat_id = #{groupChatId}
</if>
<!-- 正常 -->
<if test="status==1">
and a.status_flag = 1
<if test="null != startDate">
and a.join_time <![CDATA[ >=]]> #{startDate} and a.join_time <![CDATA[ <= ]]> #{endDate}
</if>
</if>
<!-- 退群记录 -->
<if test="status == 2">
......@@ -218,9 +221,7 @@
<if test="null != userType">
and a.user_type = #{userType}
</if>
<if test="null != startDate">
and a.join_time <![CDATA[ >=]]> #{startDate} and a.join_time <![CDATA[ <= ]]> #{endDate}
</if>
order by a.chat_user_id
</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