Commit a9d56c44 by 18356073052

修改了客户查询方法

1 parent 28a39c08
...@@ -145,13 +145,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -145,13 +145,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if> </if>
<if test="departmentIds != null and departmentIds !=''"> <if test="departmentIds != null and departmentIds !=''">
<if test="departmentIds.indexOf(',') != -1"> <if test="departmentIds.indexOf(',') != -1">
AND wu.department in OR wu.department in
<foreach item="item" index="index" collection="departmentIds.split(',')" open="(" separator="," close=")"> <foreach item="item" index="index" collection="departmentIds.split(',')" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="departmentIds.indexOf(',') == -1"> <if test="departmentIds.indexOf(',') == -1">
AND wu.department=#{departmentIds} OR wu.department=#{departmentIds}
</if> </if>
</if> </if>
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
wg.notice, wg.notice,
wu.user_name as groupLeaderName, wu.user_name as groupLeaderName,
(SELECT COUNT(*) FROM we_group_member wgm WHERE wgm.chat_id=wg.chat_id) as memberNum, (SELECT COUNT(*) FROM we_group_member wgm WHERE wgm.chat_id=wg.chat_id) as memberNum,
wg.status wg.status,
wg.`owner`
FROM FROM
we_group wg we_group wg
LEFT JOIN we_user wu ON wg.`owner`=wu.user_id 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!