From 82d1ba2edabfab7d68e8cefd750946f2e342221e Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 10 May 2019 11:25:40 +0800 Subject: [PATCH] =?UTF-8?q?-=20AddStoreCourierMap=E4=B8=ADGetMissingDadaSt?= =?UTF-8?q?ores=E7=9A=84err=E8=A2=AB=E8=A6=86=E7=9B=96=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index d8712fcda..b04ce0b83 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -810,8 +810,8 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID if err = dao.CreateEntity(db, storeCourierMap); err == nil { dao.Commit(db) if vendorID == model.VendorIDDada { - storeList, err := dao.GetMissingDadaStores(db, storeID, false) - if err == nil && len(storeList) > 0 { + storeList, err2 := dao.GetMissingDadaStores(db, storeID, false) + if err = err2; err == nil && len(storeList) > 0 { storeList[0].DadaStoreID = storeCourierMap.VendorStoreID err = updateOrCreateDadaStore(storeList[0]) } else {