|
@@ -3981,23 +3981,18 @@
|
|
|
else 0 end) * 100,
|
|
|
2) as 'deliveryRadio'
|
|
|
from kuaishou_supply_chain t1 LEFT JOIN kuaishou_activity_open_item_list t2 on t1.item_id = t2.item_id
|
|
|
- from kuaishou_supply_chain t1 LEFT JOIN kuaishou_activity_open_item_list t2 on t1.item_id = t2.item_id
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and t1.stat_date >= #{start}
|
|
|
- and stat_date >= #{start}
|
|
|
</if>
|
|
|
<if test="end != null and end != ''">
|
|
|
and t1.stat_date <= #{end}
|
|
|
- and stat_date <= #{end}
|
|
|
</if>
|
|
|
<if test="sellerId != null and sellerId != ''">
|
|
|
and t1.seller_id = #{sellerId}
|
|
|
- and seller_id = #{sellerId}
|
|
|
</if>
|
|
|
<if test='itemIds != null and itemIds.size() > 0'>
|
|
|
and t1.item_id in
|
|
|
- and item_id in
|
|
|
<foreach collection="itemIds" item="item" separator=","
|
|
|
open="(" close=")">
|
|
|
#{item}
|
|
@@ -4005,14 +4000,13 @@
|
|
|
|
|
|
</if>
|
|
|
group by t1.seller_id
|
|
|
- group by seller_id ) t1
|
|
|
+ ) t1
|
|
|
left join(select shop_id as 'shopId', shop_title as 'shopTitle' from kuaishou_activity_open_item_list GROUP BY
|
|
|
shop_id)t2
|
|
|
on t1.sellerId = t2.shopId
|
|
|
order by ${fieId} ${sort}
|
|
|
|
|
|
|
|
|
-
|
|
|
</select>
|
|
|
<select id="shopDetail" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT t1.*,
|