‘linchangsheng’ 5 months ago
parent
commit
f327bfeb4a

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

@@ -114,7 +114,7 @@
             count(if(order_status in ('DJD'),1,null)) as 'djs',
             count(if(order_status in ('DQD'),1,null)) as 'dqd',
             count(if(order_status in ('FWZ'),1,null)) as 'fwz',
-            count(if(order_status in ('DYY'),1,null)) as 'dyy',
+            count(if(appointment_time is null and a.order_status in('DYY','DSHPG','DWDPG','DJD'),1,null)) as 'dyy',
             count(if(is_exception = 1,1,null)) as 'ycdcl',
             count(if(appraise_status in ('C'),1,null)) as 'cp'
         from pg_order_base a