- 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
|
FROM jdorder t1
|
||||||
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.vendor_order_id
|
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.vendor_order_id
|
||||||
WHERE t2.id IS NULL
|
WHERE t2.id IS NULL
|
||||||
|
ORDER BY t1.orderstatustime
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
`
|
`
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
@@ -338,6 +339,7 @@ func TransferLegacyElmOrder(ctx *jxcontext.Context, isAsync, isContinueWhenError
|
|||||||
FROM elemeorder t1
|
FROM elemeorder t1
|
||||||
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.orderid
|
LEFT JOIN goods_order_original t2 ON t2.vendor_order_id = t1.orderid
|
||||||
WHERE t2.id IS NULL
|
WHERE t2.id IS NULL
|
||||||
|
ORDER BY t1.order_created_at
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
`
|
`
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
|
|||||||
Reference in New Issue
Block a user