From 870dc9cc8c63a68c71d8d5f5ebdab634cd82d845 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 18 Jan 2019 17:30:14 +0800 Subject: [PATCH] - order by sku spec in SyncSku --- business/jxstore/cms/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index d38146565..5b69ccd17 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -266,7 +266,7 @@ func (v *VendorSync) SyncSku(ctx *jxcontext.Context, db *dao.DaoDB, nameID, skuI SELECT * FROM sku WHERE name_id = ? AND %s_sync_status <> 0 - ORDER BY updated_at, id + ORDER BY IF(spec_unit IN('kg', 'L'), 1000, 1) * spec_quality `, dbField), skuName.ID); err == nil && len(skuList) > 0 { for _, sku := range skuList { syncStatus := jxutils.GetObjFieldByName(sku, syncStatusFieldName).(int8)