Browse Source

盯盘-消耗保留3位

yangzian 3 years ago
parent
commit
3ad4fc444e

+ 6 - 6
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -6,7 +6,7 @@
     <select id="getKuaiShouCostHourlyByUserIdList" resultType="Map">
         SELECT
         CONCAT(t.`hour`,':00') `hour`,
-        ROUND( SUM( charge ), 2 ) AS totalCost
+        ROUND( SUM( charge ), 3 ) AS totalCost
         FROM
         application.kuaishou_account_report_hourly_dw t
         where
@@ -123,7 +123,7 @@
     <!-- 快手 日报总消耗 及 账户数量 -->
     <select id="getKuaiShouTotalCostDaily" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
-        ROUND( SUM( charge ), 2 ) AS totalCost,
+        ROUND( SUM( charge ), 3 ) AS totalCost,
         COUNT(DISTINCT account_id) accountNum
         FROM
         application.kuaishou_account_report_daily_dw
@@ -669,9 +669,9 @@
     <!-- 快手 账户 框返 激励 消耗 -->
     <select id="getKuaiShouAccountCharged" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
-        ROUND( SUM( total_charged_in_yuan ), 2 ) AS totalCost,
-        ROUND( SUM( direct_rebate_real_charged_in_yuan ), 2 ) AS directCharged,
-        ROUND( SUM( contract_rebate_real_charged_in_yuan ), 2 ) AS contractCharged
+        ROUND( SUM( total_charged_in_yuan ), 3 ) AS totalCost,
+        ROUND( SUM( direct_rebate_real_charged_in_yuan ), 3 ) AS directCharged,
+        ROUND( SUM( contract_rebate_real_charged_in_yuan ), 3 ) AS contractCharged
         FROM application.app_kuaishou_agent_report_d
         <where>
             <if test="startDate != null and startDate != '' ">
@@ -695,7 +695,7 @@
     <select id="getKuaiShouPersonalGroupRank" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
         ROW_NUMBER() OVER ( ORDER BY SUM( total_charged_in_yuan ) DESC ) AS serialNumber,
-        ROUND( SUM( total_charged_in_yuan ), 2 ) AS totalCost,
+        ROUND( SUM( total_charged_in_yuan ), 3 ) AS totalCost,
         user_id,
         user_name
         FROM