jiequan.bi 5 лет назад
Родитель
Сommit
83f7e8319c

+ 4 - 0
module-toutiao/src/main/resources/json_template/bytedance_filed_mapping.json

@@ -27,6 +27,10 @@
     "filed": "sum(t1.convert_num) as convertMaterial ",
     "comment": "转化数"
   },
+  "convertCost": {
+    "filed": "CASE WHEN sum(t1.cost) / sum(t1.convert_num) IS NULL THEN 0 ELSE ROUND((sum(t1.cost) / sum(t1.convert_num)) * 1000, 2 ) END AS convertCost ",
+    "comment": "转化成本"
+  },
   "convertRate": {
     "filed": "CASE WHEN sum(t1.convert_num) / sum(t1.cost) IS NULL THEN 0 ELSE concat(round(sum(t1.convert_num) / sum(t1.cost)*100,2),'%') end AS convertRate ",
     "comment": "转化率"