|
|
@@ -475,7 +475,10 @@
|
|
|
and b.name like concat('%',#{aname},'%')
|
|
|
</if>
|
|
|
<if test="depName != null">
|
|
|
- and tm.dep_name = #{depName}
|
|
|
+ and tm.dep_name in
|
|
|
+ <foreach close=")" collection="depName" item="deps" open="(" separator=",">
|
|
|
+ #{deps}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="inputDep != null">
|
|
|
and ia.department_id in
|
|
|
@@ -485,8 +488,8 @@
|
|
|
</if>
|
|
|
<if test="followDep != null">
|
|
|
and b.department_id in
|
|
|
- <foreach close=")" collection="followDep" item="f" open="(" separator=",">
|
|
|
- #{f}
|
|
|
+ <foreach close=")" collection="followDep" item="deps" open="(" separator=",">
|
|
|
+ #{deps}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="salesmanRemind !=null">
|
|
|
@@ -546,7 +549,10 @@
|
|
|
and b.name like concat('%',#{aname},'%')
|
|
|
</if>
|
|
|
<if test="depName != null">
|
|
|
- and tm.dep_name = #{depName}
|
|
|
+ and tm.dep_name in
|
|
|
+ <foreach close=")" collection="depName" item="deps" open="(" separator=",">
|
|
|
+ #{deps}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="inputDep != null">
|
|
|
and ia.department_id in
|
|
|
@@ -556,8 +562,8 @@
|
|
|
</if>
|
|
|
<if test="followDep != null">
|
|
|
and b.department_id in
|
|
|
- <foreach close=")" collection="followDep" item="f" open="(" separator=",">
|
|
|
- #{f}
|
|
|
+ <foreach close=")" collection="followDep" item="deps" open="(" separator=",">
|
|
|
+ #{deps}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="salesmanRemind !=null">
|