|
@@ -5,7 +5,7 @@
|
|
<select id="countOrderStatus" resultType="com.gree.mall.miniapp.bean.workorder.CountOrderStatusBean">
|
|
<select id="countOrderStatus" resultType="com.gree.mall.miniapp.bean.workorder.CountOrderStatusBean">
|
|
select
|
|
select
|
|
count(DISTINCT if((is_import_excel = false and a.order_status='DJD') or (is_import_excel = true and a.is_meet = false) ,a.id,null)) 'djd',
|
|
count(DISTINCT if((is_import_excel = false and a.order_status='DJD') or (is_import_excel = true and a.is_meet = false) ,a.id,null)) 'djd',
|
|
- count(DISTINCT if(a.order_status in ('FWZ','GCSZT','BFWG','DSM','YZP'),a.id,null)) 'fwz',
|
|
|
|
|
|
+ count(DISTINCT if(a.order_status in ('FWZ','GCSZT','BFWG','DSM','YZP') and a.is_meet = true,a.id,null)) 'fwz',
|
|
count(DISTINCT if(a.is_exception=1,a.id,null)) 'ycd',
|
|
count(DISTINCT if(a.is_exception=1,a.id,null)) 'ycd',
|
|
count(DISTINCT if(a.order_status='DQD',a.id,null)) 'dqd',
|
|
count(DISTINCT if(a.order_status='DQD',a.id,null)) 'dqd',
|
|
count(DISTINCT if(a.order_status in ('YWG','YJS','GCSZX','YWGO','WDWG'),a.id,null)) 'ywg',
|
|
count(DISTINCT if(a.order_status in ('YWG','YJS','GCSZX','YWGO','WDWG'),a.id,null)) 'ywg',
|