|
@@ -60,7 +60,7 @@
|
|
|
count(distinct a.id) 'total',
|
|
|
'PJSQZ' AS 'orderStatus',
|
|
|
'配件申请中' AS 'orderStatusText'
|
|
|
- from pg_order_base a
|
|
|
+ from pg_order_base a join websit_parts_apply b on a.id = b.order_base_id
|
|
|
where b.status = 'ING'
|
|
|
<include refid="orderBaseSqlWhere"></include>
|
|
|
<if test="orderSmallType != null and orderSmallType != ''">
|
|
@@ -77,7 +77,7 @@
|
|
|
count(distinct a.id) 'total',
|
|
|
'PJYDH' AS 'orderStatus',
|
|
|
'配件已到货' as 'orderStatusText'
|
|
|
- from pg_order_base a
|
|
|
+ from pg_order_base a join websit_parts_apply b on a.id = b.order_base_id
|
|
|
where b.status = 'END'
|
|
|
<include refid="orderBaseSqlWhere"></include>
|
|
|
<if test="orderSmallType != null and orderSmallType != ''">
|
|
@@ -94,7 +94,7 @@
|
|
|
count(distinct a.id) 'total',
|
|
|
'PJYQX' AS 'orderStatus',
|
|
|
'配件已取消' as 'orderStatusText'
|
|
|
- from pg_order_base a
|
|
|
+ from pg_order_base a join websit_parts_apply b on a.id = b.order_base_id
|
|
|
where b.status = 'CANCEL'
|
|
|
<include refid="orderBaseSqlWhere"></include>
|
|
|
<if test="orderSmallType != null and orderSmallType != ''">
|