"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 ",