소스 검색

update filed_mapping.json

jiequan.bi 5 년 전
부모
커밋
83f7e8319c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      module-toutiao/src/main/resources/json_template/bytedance_filed_mapping.json

+ 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": "转化率"