|
@@ -90,7 +90,7 @@
|
|
|
<select id="getCompanyMeterialConsumeBytedance" resultType="java.util.LinkedHashMap">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- SUM(t.cost) tcost
|
|
|
+ SUM(t.cost) cost
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -136,7 +136,7 @@
|
|
|
<!-- 分公司素材消耗 快手 -->
|
|
|
<select id="getCompanyMeterialConsumeKuaishou" resultType="java.util.LinkedHashMap">
|
|
|
SELECT t.*,
|
|
|
- SUM(t.cost) as tcost
|
|
|
+ SUM(t.cost) as cost
|
|
|
from (
|
|
|
SELECT company_id,company_name,SUM(charge) cost,
|
|
|
CASE company_id
|
|
@@ -353,7 +353,7 @@
|
|
|
<select id="getCompanyAccountDataBytedance" resultType="java.util.LinkedHashMap">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- SUM(t.cost) tcost,
|
|
|
+ SUM(t.cost) cost,
|
|
|
CONCAT(ROUND(SUM(t.cost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
FROM
|
|
|
(
|
|
@@ -402,7 +402,7 @@
|
|
|
<select id="getCompanyAccountDataKuaishou" resultType="java.util.LinkedHashMap">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- SUM(t.cost) tcost,
|
|
|
+ SUM(t.cost) cost,
|
|
|
CONCAT(ROUND(SUM(t.cost) / t.totalCost * 100,2) ,'%')as rate
|
|
|
FROM
|
|
|
(
|