‘linchangsheng’ 8 months ago
parent
commit
1dcac55d08

+ 6 - 6
mall-server-api/src/main/resources/mapper/workorder/OrderBaseCMapper.xml

@@ -7,7 +7,7 @@
           count(distinct a.id) 'total',
           order_status 'orderStatus',
           order_status_text 'orderStatusText'
-        from pg_order_base a join pg_order_product b on a.id=b.order_base_id
+        from pg_order_base a
           where 1=1
           <include refid="orderBaseSqlWhere"></include>
         <if test="orderSmallType != null and orderSmallType != ''">
@@ -26,7 +26,7 @@
             count(distinct a.id)  'total',
             'YCD' as 'orderStatus',
             '异常待处理' as 'orderStatusText'
-        from pg_order_base a join pg_order_product b on a.id=b.order_base_id
+        from pg_order_base a
         where is_exception=1
         <include refid="orderBaseSqlWhere"></include>
         <if test="orderSmallType != null and orderSmallType != ''">
@@ -43,7 +43,7 @@
             count(distinct a.id)  'total',
             'DYY' as 'orderStatus',
             '待预约' as 'orderStatusText'
-        from pg_order_base a join pg_order_product b on a.id=b.order_base_id
+        from pg_order_base a
         where appointment_time is null and a.order_status in('DYY','DSHPG','DWDPG','DJD')
         <include refid="orderBaseSqlWhere"></include>
         <if test="orderSmallType != null and orderSmallType != ''">
@@ -60,7 +60,7 @@
         count(distinct a.id)  'total',
         'PJSQZ' AS 'orderStatus',
         '配件申请中' AS 'orderStatusText'
-        from pg_order_base a join websit_parts_apply b on a.id = b.order_base_id
+        from pg_order_base a
         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 join websit_parts_apply b on a.id = b.order_base_id
+        from pg_order_base a
         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 join websit_parts_apply b on a.id = b.order_base_id
+        from pg_order_base a
         where b.status = 'CANCEL'
         <include refid="orderBaseSqlWhere"></include>
         <if test="orderSmallType != null and orderSmallType != ''">