|
@@ -103,7 +103,7 @@
|
|
|
<where>
|
|
<where>
|
|
|
1=1
|
|
1=1
|
|
|
<if test="vo.userId !=null and vo.userId!=''">
|
|
<if test="vo.userId !=null and vo.userId!=''">
|
|
|
- and su.leader_id=#{vo.userId}
|
|
|
|
|
|
|
+ and su.id=#{vo.userId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="vo.userIds !=null and vo.userIds!='' and vo.userIds.size()>0">
|
|
<if test="vo.userIds !=null and vo.userIds!='' and vo.userIds.size()>0">
|
|
|
and su.leader_id in
|
|
and su.leader_id in
|
|
@@ -173,7 +173,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
<if test="vo.userIds !=null and vo.userIds!='' and vo.userIds.size()>0">
|
|
<if test="vo.userIds !=null and vo.userIds!='' and vo.userIds.size()>0">
|
|
|
- and su.id in
|
|
|
|
|
|
|
+ and su.leader_id in
|
|
|
<foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
|
|
<foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -192,13 +192,6 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
- <if test="vo.userIds != null and vo.userIds != '' and vo.userIds.size() > 0">
|
|
|
|
|
- AND io.userid in
|
|
|
|
|
- <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
|
|
|
|
|
- #{item}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -233,6 +226,15 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.userIds !=null and vo.userIds!='' and vo.userIds.size()>0">
|
|
|
|
|
+ and su.leader_id in
|
|
|
|
|
+ <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="vo.managementSource !=null and vo.managementSource!=''">
|
|
<if test="vo.managementSource !=null and vo.managementSource!=''">
|
|
|
and sd.management_source=#{vo.managementSource}
|
|
and sd.management_source=#{vo.managementSource}
|
|
|
</if>
|
|
</if>
|