Commit e28b6701 by 徐高华

群加gic企业id参数

parent 1f39ed25
...@@ -54,6 +54,9 @@ ...@@ -54,6 +54,9 @@
SELECT a.staff_id staffId , b.`staff_name` staffName , a.wx_enterprise_id wxEnterpriseId , 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 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"> <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 left join tab_haoban_staff_department_related c on a.staff_id = c.staff_id and c.status_flag = 1
</if> </if>
...@@ -64,6 +67,9 @@ ...@@ -64,6 +67,9 @@
#{id,jdbcType=VARCHAR} #{id,jdbcType=VARCHAR}
</foreach> </foreach>
</if> </if>
<if test="null != paramsEnterpriseId and ''!=paramsEnterpriseId ">
and d.enterprise_id = #{paramsEnterpriseId}
</if>
<if test="null != searchParams and ''!=searchParams "> <if test="null != searchParams and ''!=searchParams ">
and b.staff_name like #{searchParams} and b.staff_name like #{searchParams}
</if> </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