|
|
@@ -673,13 +673,13 @@
|
|
|
store_id,
|
|
|
store.store_name,
|
|
|
ROUND(SUM(final_price), 2 ) AS operation_revenue,
|
|
|
- ROUND(SUM(final_price) * (1-IFNULL(store.commission_rate, 3)/100),2) AS store_profit,
|
|
|
+ ROUND(SUM(final_price) - ROUND(SUM(final_price) * (IFNULL(store.commission_rate, 3)/100),2), 2) AS store_profit,
|
|
|
ROUND(SUM(final_price) * (IFNULL(store.commission_rate, 3)/100),2) AS platform_profit
|
|
|
FROM
|
|
|
life_user_order `order`
|
|
|
LEFT JOIN store_info store ON store.id = `order`.store_id
|
|
|
WHERE
|
|
|
- `status` = 1
|
|
|
+ `status` = 2
|
|
|
<if test="startTime != null and startTime != ''" >
|
|
|
AND used_time > #{startTime}
|
|
|
</if>
|