select b.store_id,c.store_name,b.show_time,IFNull(count(d.spu_id),0) as 'spu_count',IFNull(count(d.sku_id),0) as 'sku_count' from goblin_self_marketing as a
...
...
@@ -44,4 +59,27 @@ GROUP BY b.store_id
select sku_id from goblin_marketing_zhengzai where self_market_id = #{marketId} and store_id = #{storeId}