Files
ruoyi-java/sql/backfill_goods_info_preview.sql
T
2026-06-10 19:35:54 +08:00

9 lines
218 B
SQL

-- 预览:待回填 goods_info 的订单号(goods_info_id 为空)
SELECT order_id
FROM order_rows
WHERE goods_info_id IS NULL
AND order_id IS NOT NULL
GROUP BY order_id
ORDER BY MAX(order_time) DESC
LIMIT 100;