|
|
@@ -402,6 +402,9 @@
|
|
|
,b.operation_time operationTime,date_format(b.operation_time,'%Y-%m-%d')operationDate,b.legal_affairs_type `type`
|
|
|
</if>
|
|
|
from t_order_new a left join t_order_mid b on a.order_no =b.order_no
|
|
|
+ <if test="type==3">
|
|
|
+ left join t_order_legal_affairs d on a.order_no=d.order_no
|
|
|
+ </if>
|
|
|
<if test="shiro == 2">
|
|
|
left join admin c on a.salesman_id =c.id
|
|
|
</if>
|
|
|
@@ -411,6 +414,9 @@
|
|
|
<if test="type==0">
|
|
|
where b.order_receivables >0
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ and d.status = #{status}
|
|
|
+ </if>
|
|
|
<if test="shiro==1">
|
|
|
and a.order_type in
|
|
|
<foreach close=")" collection="deps" item="dep" open="(" separator=",">
|
|
|
@@ -453,6 +459,9 @@
|
|
|
<select id="legalAffairsOrderCount" resultType="integer">
|
|
|
select count(*)
|
|
|
from t_order_new a left join t_order_mid b on a.order_no =b.order_no
|
|
|
+ <if test="type==3">
|
|
|
+ left join t_order_legal_affairs d on a.order_no=d.order_no
|
|
|
+ </if>
|
|
|
<if test="shiro == 2">
|
|
|
left join admin c on a.salesman_id =c.id
|
|
|
</if>
|
|
|
@@ -462,6 +471,9 @@
|
|
|
<if test="type==0">
|
|
|
where b.order_receivables >0
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ and d.status = #{status}
|
|
|
+ </if>
|
|
|
<if test="shiro==1">
|
|
|
and a.order_type in
|
|
|
<foreach close=")" collection="deps" item="dep" open="(" separator=",">
|