|
@@ -33,7 +33,7 @@
|
|
|
ch.name as orderChannel,
|
|
|
count(1) as serviceTime,
|
|
|
sum(if(a.status in (3,4),1,0)) as servicedTime,
|
|
|
- sum(c.actual_price/bk.service_times) as gmv
|
|
|
+ sum(if(a.status in (3,4),c.actual_price/bk.service_times,0)) as gmv
|
|
|
from jlife_nurse.jz_order_book_detail a
|
|
|
join jlife_nurse.jz_order_goods b on a.order_id=b.order_id
|
|
|
join jlife_nurse.jz_order c on c.id=a.order_id
|