Commit a9d56c44 by 18356073052

修改了客户查询方法

1 parent 28a39c08
......@@ -145,13 +145,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
<if test="departmentIds != null and departmentIds !=''">
<if test="departmentIds.indexOf(',') != -1">
AND wu.department in
OR wu.department in
<foreach item="item" index="index" collection="departmentIds.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="departmentIds.indexOf(',') == -1">
AND wu.department=#{departmentIds}
OR wu.department=#{departmentIds}
</if>
</if>
......
......@@ -13,7 +13,8 @@
wg.notice,
wu.user_name as groupLeaderName,
(SELECT COUNT(*) FROM we_group_member wgm WHERE wgm.chat_id=wg.chat_id) as memberNum,
wg.status
wg.status,
wg.`owner`
FROM
we_group wg
LEFT JOIN we_user wu ON wg.`owner`=wu.user_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!