|
@@ -194,12 +194,19 @@
|
|
|
then 0
|
|
|
else replace( t3.ccr_value,'%','')
|
|
|
end
|
|
|
- ) as 'ccrInt'
|
|
|
+ ) as 'ccrInt',
|
|
|
+ t4.shop_star as 'shopStar',
|
|
|
+ t4.mall_logistics_score as 'mallLogisticsScore',
|
|
|
+ t4.shop_score as 'shopScore',
|
|
|
+ t4.mall_service_score as 'mallServiceScore',
|
|
|
+ t4.mall_quality_score as 'mallQualityScore'
|
|
|
from kuaishou_supply_chain t1
|
|
|
left join kuaishou_item_bind_user t2
|
|
|
on t1.item_id = t2.item_id
|
|
|
left join kuaishou_item_ccr_info t3
|
|
|
on t1.item_id = t3.item_id
|
|
|
+ left join kuaishou_activity_open_item_list t4
|
|
|
+ on t1.item_id = t4.item_id
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and t1.order_create_time >= #{start}
|
|
@@ -223,8 +230,12 @@
|
|
|
|
|
|
|
|
|
<select id="itemBindList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- select t1.*,t2.*
|
|
|
-
|
|
|
+ select t1.*,t2.*,
|
|
|
+ t3.shop_star as 'shopStar',
|
|
|
+ t3.mall_logistics_score as 'mallLogisticsScore',
|
|
|
+ t3.shop_score as 'shopScore',
|
|
|
+ t3.mall_service_score as 'mallServiceScore',
|
|
|
+ t3.mall_quality_score as 'mallQualityScore'
|
|
|
from (select t.item_id as 'itemId', t.item_title as 'itemTitle', t.user_id as 'userId', t.user_name as
|
|
|
'userName',
|
|
|
(case
|
|
@@ -267,6 +278,8 @@
|
|
|
from kuaishou_supply_chain
|
|
|
where order_create_time >= #{start}
|
|
|
group by item_id) t2 on t1.itemId = t2.itemId
|
|
|
+ left join kuaishou_activity_open_item_list t3
|
|
|
+ on t1.itemId = t3.item_id
|
|
|
|
|
|
where 1 = 1
|
|
|
<if test="itemId != null and itemId != ''">
|
|
@@ -867,12 +880,19 @@
|
|
|
round(sum(case when t1.send_status = 1 and order_status != 80 then 1 else 0 end) / sum(case when t1.order_status
|
|
|
!= 80 then 1 else 0 end) * 100, 2) as 'deliveryRadio',
|
|
|
round(t1.item_commission_rate / 10,2) as 'itemCommissionRate',
|
|
|
- t3.ccr_value as 'ccrValue'
|
|
|
+ t3.ccr_value as 'ccrValue',
|
|
|
+ t4.shop_star as 'shopStar',
|
|
|
+ t4.mall_logistics_score as 'mallLogisticsScore',
|
|
|
+ t4.shop_score as 'shopScore',
|
|
|
+ t4.mall_service_score as 'mallServiceScore',
|
|
|
+ t4.mall_quality_score as 'mallQualityScore'
|
|
|
from kuaishou_supply_chain t1
|
|
|
left join kuaishou_item_bind_user t2
|
|
|
on t1.item_id = t2.item_id
|
|
|
left join kuaishou_item_ccr_info t3
|
|
|
on t1.item_id = t3.item_id
|
|
|
+ left join kuaishou_activity_open_item_list t4
|
|
|
+ on t1.item_id = t4.item_id
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and t1.order_create_time >= #{start}
|
|
@@ -2520,7 +2540,12 @@
|
|
|
|
|
|
</select>
|
|
|
<select id="exportBindOrder" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- select *,t3.ccr_value as 'ccrValue'
|
|
|
+ select *,t3.ccr_value as 'ccrValue',
|
|
|
+ t4.shop_star as 'shopStar',
|
|
|
+ t4.mall_logistics_score as 'mallLogisticsScore',
|
|
|
+ t4.shop_score as 'shopScore',
|
|
|
+ t4.mall_service_score as 'mallServiceScore',
|
|
|
+ t4.mall_quality_score as 'mallQualityScore'
|
|
|
from (select item_id as 'itemId', item_title as 'itemTitle', user_id as 'userId', user_name as 'userName'
|
|
|
from kuaishou_item_list
|
|
|
where
|
|
@@ -2546,6 +2571,10 @@
|
|
|
group by item_id) t2 on t1.itemId = t2.itemId
|
|
|
left join kuaishou_item_ccr_info t3
|
|
|
on t1.itemId = t3.item_id
|
|
|
+ left join kuaishou_activity_open_item_list t4
|
|
|
+ on t1.itemId = t4.item_id
|
|
|
+
|
|
|
+
|
|
|
where 1 = 1
|
|
|
<if test="itemId != null and itemId != ''">
|
|
|
and t1.item_id = #{itemId}
|