|
|
@@ -511,6 +511,9 @@ select
|
|
|
<if test="processState==0">
|
|
|
and b.salesman_id= #{aid}
|
|
|
</if>
|
|
|
+ <if test="processState==1">
|
|
|
+ and d.manager_id= #{aid}
|
|
|
+ </if>
|
|
|
<if test="processState==3 and complete !=5">
|
|
|
and x.aid=#{aid} and a.process_state >= 2
|
|
|
</if>
|
|
|
@@ -618,9 +621,12 @@ select
|
|
|
left join (select order_no, aid from order_examine where`type`=1 group by order_no,aid)x on a.order_no = x.order_no
|
|
|
</if>
|
|
|
where 1=1
|
|
|
- <if test="processState==0">
|
|
|
- and b.salesman_id= #{aid}
|
|
|
- </if>
|
|
|
+ <if test="processState==0">
|
|
|
+ and b.salesman_id= #{aid}
|
|
|
+ </if>
|
|
|
+ <if test="processState==1">
|
|
|
+ and d.manager_id= #{aid}
|
|
|
+ </if>
|
|
|
<if test="processState==3 and complete !=5">
|
|
|
and x.aid=#{aid} and a.process_state >= 2
|
|
|
</if>
|