|
@@ -1669,7 +1669,6 @@
|
|
t1.user_name as 'userName',
|
|
t1.user_name as 'userName',
|
|
count(distinct t1.item_id) as 'itemCount',
|
|
count(distinct t1.item_id) as 'itemCount',
|
|
count(t2.oid) as 'orderNum',
|
|
count(t2.oid) as 'orderNum',
|
|
- count(distinct t3.courier_number) as 'sendSampleCount',
|
|
|
|
sum(case when t2.order_status != 80 then 1 else 0 end) as 'validOrderNUm',
|
|
sum(case when t2.order_status != 80 then 1 else 0 end) as 'validOrderNUm',
|
|
round(sum(case when t2.order_status != 80 then 1 else 0 end) / count(t2.oid), 4) as 'validRadio',
|
|
round(sum(case when t2.order_status != 80 then 1 else 0 end) / count(t2.oid), 4) as 'validRadio',
|
|
sum(case when t2.send_status = 1 and t2.order_status != 80 then 1 else 0 end) as 'deliveryNum',
|
|
sum(case when t2.send_status = 1 and t2.order_status != 80 then 1 else 0 end) as 'deliveryNum',
|
|
@@ -1718,7 +1717,6 @@
|
|
t1.user_name as 'userName',
|
|
t1.user_name as 'userName',
|
|
count(distinct t1.item_id) as 'itemCount',
|
|
count(distinct t1.item_id) as 'itemCount',
|
|
count(t2.oid) as 'orderNum',
|
|
count(t2.oid) as 'orderNum',
|
|
- count(distinct t3.courier_number) as 'sendSampleCount',
|
|
|
|
sum(case when t2.order_status != 80 then 1 else 0 end) as 'validOrderNUm',
|
|
sum(case when t2.order_status != 80 then 1 else 0 end) as 'validOrderNUm',
|
|
round(sum(case when t2.order_status != 80 then 1 else 0 end) / count(t2.oid) * 100,2) as 'validRadio',
|
|
round(sum(case when t2.order_status != 80 then 1 else 0 end) / count(t2.oid) * 100,2) as 'validRadio',
|
|
sum(case when t2.send_status = 1 and t2.order_status != 80 then 1 else 0 end) as 'deliveryNum',
|
|
sum(case when t2.send_status = 1 and t2.order_status != 80 then 1 else 0 end) as 'deliveryNum',
|