This commit is contained in:
van
2026-06-10 19:35:54 +08:00
parent e890039dea
commit 546cd8eb04
5 changed files with 35 additions and 23 deletions

View File

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