|
|
@@ -3087,6 +3087,12 @@
|
|
|
<if test="shiro ==1">
|
|
|
and c.salesman_id =#{aid}
|
|
|
</if>
|
|
|
+ <if test="shiro ==2">
|
|
|
+ and c.order_dep in
|
|
|
+ <foreach close=")" collection="myDeps" item="dep" open="(" separator=",">
|
|
|
+ #{dep}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="deps !=null">
|
|
|
and c.order_dep in
|
|
|
<foreach close=")" collection="deps" item="dep" open="(" separator=",">
|
|
|
@@ -3145,10 +3151,17 @@
|
|
|
from task_stop a left join t_order_task b on a.tid=b.id
|
|
|
left join t_order_new c on b.order_no =c.order_no
|
|
|
left join t_order_mid tom on c.order_no =tom.order_no
|
|
|
+
|
|
|
where 1=1
|
|
|
<if test="shiro ==1">
|
|
|
and c.salesman_id =#{aid}
|
|
|
</if>
|
|
|
+ <if test="shiro ==2">
|
|
|
+ and c.order_dep in
|
|
|
+ <foreach close=")" collection="myDeps" item="dep" open="(" separator=",">
|
|
|
+ #{dep}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="deps !=null">
|
|
|
and c.order_dep in
|
|
|
<foreach close=")" collection="deps" item="dep" open="(" separator=",">
|