From dff3bf8316712adf3a422f47ed71b7b3f0417a9c Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 1 Feb 2019 10:01:16 +0800 Subject: [PATCH] - add order by in TransferLegacyJdOrder and TransferLegacyElmOrder --- business/jxstore/tempop/tempop.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 277a63e99..960df02b2 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -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()