- add order by in TransferLegacyJdOrder and TransferLegacyElmOrder

This commit is contained in:
gazebo
2019-02-01 10:01:16 +08:00
parent ddf45638ff
commit dff3bf8316

View File

@@ -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()