|
|
@@ -416,12 +416,13 @@
|
|
|
<if test="shiro == 2">
|
|
|
left join admin c on a.salesman_id =c.id
|
|
|
</if>
|
|
|
+ where 1=1 and a.delete_sign in (0,2)
|
|
|
<if test="type==1 or type==2 or type==3">
|
|
|
- where b.legal_affairs =1
|
|
|
+ and b.legal_affairs =1
|
|
|
and b.legal_affairs_type = (#{type}-1)
|
|
|
</if>
|
|
|
<if test="type==0">
|
|
|
- where b.order_receivables >0
|
|
|
+ and b.order_receivables >0
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
and b.legal_affairs_status = #{status}
|
|
|
@@ -474,12 +475,13 @@
|
|
|
<if test="shiro == 2">
|
|
|
left join admin c on a.salesman_id =c.id
|
|
|
</if>
|
|
|
+ where 1=1 and a.delete_sign in (0,2)
|
|
|
<if test="type==1 or type==2 or type==3">
|
|
|
- where b.legal_affairs =1
|
|
|
+ and b.legal_affairs =1
|
|
|
and b.legal_affairs_type = (#{type}-1)
|
|
|
</if>
|
|
|
<if test="type==0">
|
|
|
- where b.order_receivables >0
|
|
|
+ and b.order_receivables >0
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
and b.legal_affairs_status = #{status}
|