|
@@ -361,14 +361,14 @@
|
|
|
<select id="getCompanyAccountDataBytedance" resultType="java.util.LinkedHashMap">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- SUM(t.cost) cost,
|
|
|
- CONCAT(ROUND(SUM(t.cost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
+ SUM(t.tcost) cost,
|
|
|
+ CONCAT(ROUND(SUM(t.tcost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
|
company_id,
|
|
|
company_name,
|
|
|
- SUM(cost) cost,
|
|
|
+ SUM(cost) tcost,
|
|
|
CASE
|
|
|
company_id
|
|
|
WHEN 'd57fecdcf7a94d009736d9c850731582' THEN '华北'
|
|
@@ -409,14 +409,14 @@
|
|
|
<select id="getCompanyAccountDataKuaishou" resultType="java.util.LinkedHashMap">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- SUM(t.cost) cost,
|
|
|
- CONCAT(ROUND(SUM(t.cost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
+ SUM(t.tcost) cost,
|
|
|
+ CONCAT(ROUND(SUM(t.tcost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
|
company_id,
|
|
|
company_name,
|
|
|
- SUM(charge) cost,
|
|
|
+ SUM(charge) tcost,
|
|
|
CASE
|
|
|
company_id
|
|
|
WHEN 'd57fecdcf7a94d009736d9c850731582' THEN '华北'
|