
select distinct (Sku) from pp_replenishment_ebay_queue_202501 where CustomerId=1 and MarketId=2 and Date>20250122 and StrategyId=0 and sku in(
select sku from p_product_overseasinventory_change where Inventory=0 and CreationTime > '2025-01-22 12:00:00'
) -- 查询补货队列里面库存为0的sku实际是否进行平衡库存
select count(sku) from p_product_overseasinventory_change where Inventory=0 and CreationTime > '2025-01-22 12:00:00' -- 查询库存变为0的sku
库存变为0的sku共有162个,实际进入补货队列的sku只有61个。
去重后少了一个sku