|
|
@@ -128,8 +128,7 @@
|
|
|
lf.id as firm_id,
|
|
|
lf.firm_name,
|
|
|
COUNT(DISTINCT lco.id) as order_count,
|
|
|
- CAST(ROUND(COALESCE(SUM(lco.lawyer_earnings), 0) / 100.0, 2) AS CHAR) as total_amount_yuan,
|
|
|
- CAST(ROUND(COALESCE(SUM(lco.consultation_fee), 0) / 100.0, 2) AS CHAR) as commission_fee_yuan
|
|
|
+ CAST(ROUND(COALESCE(SUM(lco.order_amount), 0) / 100.0, 2) AS CHAR) as total_amount_yuan
|
|
|
FROM law_firm lf
|
|
|
LEFT JOIN lawyer_consultation_order lco ON lco.place_id = lf.id
|
|
|
AND lco.delete_flag = 0
|