Commit e28b6701 by 徐高华

群加gic企业id参数

parent 1f39ed25
......@@ -53,7 +53,10 @@
<select id="listOwner" parameterType="com.gic.haoban.manage.api.dto.qdto.chat.OwnerSearchQDTO" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatOwnerDTO">
SELECT a.staff_id staffId , b.`staff_name` staffName , a.wx_enterprise_id wxEnterpriseId ,
b.wx_user_id wxUserId , b.wx_open_user_id wxOpenUserId
FROM tab_haoban_group_chat_owner a LEFT JOIN tab_haoban_staff b ON a.`staff_id` = b.`staff_id`
FROM tab_haoban_group_chat_owner a LEFT JOIN tab_haoban_staff b ON a.`staff_id` = b.`staff_id`
<if test="null != paramsEnterpriseId and ''!=paramsEnterpriseId ">
left join tab_haoban_staff_enterprise_related d on a.staff_id = d.staff_id and d.status_flag = 1
</if>
<if test="departmentIdList != null and departmentIdList.size() > 0">
left join tab_haoban_staff_department_related c on a.staff_id = c.staff_id and c.status_flag = 1
</if>
......@@ -64,6 +67,9 @@
#{id,jdbcType=VARCHAR}
</foreach>
</if>
<if test="null != paramsEnterpriseId and ''!=paramsEnterpriseId ">
and d.enterprise_id = #{paramsEnterpriseId}
</if>
<if test="null != searchParams and ''!=searchParams ">
and b.staff_name like #{searchParams}
</if>
......
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