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 {