‘linchangsheng’ 8 月之前
父节点
当前提交
f5a98d540d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mall-server-api/src/main/resources/mapper/workorder/OrderBaseCMapper.xml

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

@@ -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 != ''">