|
@@ -336,7 +336,11 @@
|
|
|
item_id as 'itemId',
|
|
|
item_title as 'itemTitle',
|
|
|
image_url as 'imageUrl',
|
|
|
- count(oid) as 'orderNum'
|
|
|
+ count(oid) as 'orderNum',
|
|
|
+ sum(case when order_status != 80 then 1 else 0 end) as 'validOrderNUm',
|
|
|
+ round(sum(case when order_status != 80 then 1 else 0 end) / count(oid),2) as 'validRadio',
|
|
|
+ sum(case when send_status = 1 then 1 else 0 end) as 'deliveryNum',
|
|
|
+ round(sum(case when send_status = 1 then 1 else 0 end) / sum(case when order_status != 80 then 1 else 0 end),2) as 'deliveryRadio'
|
|
|
from kuaishou_supply_chain
|
|
|
where 1= 1
|
|
|
<if test="start != null and start != ''">
|