- add order by in TransferLegacyJdOrder and TransferLegacyElmOrder
This commit is contained in:
@@ -276,6 +276,7 @@ func TransferLegacyJdOrder(ctx *jxcontext.Context, isAsync, isContinueWhenError
|
||||
FROM jdorder t1
|
||||
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.vendor_order_id
|
||||
WHERE t2.id IS NULL
|
||||
ORDER BY t1.orderstatustime
|
||||
LIMIT ?
|
||||
`
|
||||
db := dao.GetDB()
|
||||
@@ -338,6 +339,7 @@ func TransferLegacyElmOrder(ctx *jxcontext.Context, isAsync, isContinueWhenError
|
||||
FROM elemeorder t1
|
||||
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.orderid
|
||||
WHERE t2.id IS NULL
|
||||
ORDER BY t1.order_created_at
|
||||
LIMIT ?
|
||||
`
|
||||
db := dao.GetDB()
|
||||
|
||||
Reference in New Issue
Block a user