|
@@ -172,7 +172,7 @@
|
|
|
<select id="getBytedanceOrderList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2) as 'orderNumRatio'
|
|
|
+ IFNULL(ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2),0) as 'orderNumRatio'
|
|
|
FROM (
|
|
|
SELECT
|
|
|
IFNULL(t1.author_short_id,'-') AS 'promoterId',
|
|
@@ -434,7 +434,7 @@
|
|
|
<select id="bytedanceItemList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
t.*,
|
|
|
- ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2) as 'orderNumRatio'
|
|
|
+ IFNULL(ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2),0) as 'orderNumRatio'
|
|
|
FROM (
|
|
|
SELECT
|
|
|
t1.product_bind_user_id AS 'userId',
|
|
@@ -516,7 +516,7 @@
|
|
|
SELECT
|
|
|
t.*,
|
|
|
t1.sendSampleCount,
|
|
|
- ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2) as 'orderNumRatio'
|
|
|
+ IFNULL(ROUND(((t.orderNum-t2.orderNum)/t2.orderNum)*100,2),0) as 'orderNumRatio'
|
|
|
FROM (
|
|
|
SELECT
|
|
|
t2.product_bind_user_id AS 'userId',
|
|
@@ -591,7 +591,7 @@
|
|
|
SELECT
|
|
|
t.*,
|
|
|
t2.sendSampleCount,
|
|
|
- ROUND(((t.orderNum-t3.orderNum)/t3.orderNum)*100,2) as 'orderNumRatio'
|
|
|
+ IFNULL(ROUND(((t.orderNum-t3.orderNum)/t3.orderNum)*100,2),0) as 'orderNumRatio'
|
|
|
FROM (
|
|
|
SELECT
|
|
|
t1.user_id AS 'userId',
|
|
@@ -947,7 +947,7 @@
|
|
|
tttt.sendTotalCount,
|
|
|
tttt.sendPromoterCount,
|
|
|
tttt.sendItemCount,
|
|
|
- ROUND(((t.orderNum-t11.orderNum)/t11.orderNum)*100,2) as 'orderNumRatio',
|
|
|
+ IFNULL(ROUND(((t.orderNum-t11.orderNum)/t11.orderNum)*100,2),0) as 'orderNumRatio',
|
|
|
IFNULL( ttttt.promoters_count,'-') as 'promotersCount',
|
|
|
concat(round(ttt.sampleCount / tt.promoterCount * 100, 2), '%') as 'sampleRate',
|
|
|
tt.promoterCount - ttt.sampleCount as 'notSampleCount'
|
|
@@ -1078,7 +1078,7 @@
|
|
|
tttt.sendTotalCount,
|
|
|
tttt.sendPromoterCount,
|
|
|
tttt.sendItemCount,
|
|
|
- ROUND(((t.orderNum-t11.orderNum)/t11.orderNum)*100,2) as 'orderNumRatio',
|
|
|
+ IFNULL(ROUND(((t.orderNum-t11.orderNum)/t11.orderNum)*100,2),0) as 'orderNumRatio',
|
|
|
IFNULL(ttttt.promoters_count, '-') as 'promotersCount'
|
|
|
from (select t1.user_id as 'collectSampleId',
|
|
|
t1.user_name as 'collectSampleName',
|