diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index f91edbfdd..e3a768f48 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -811,7 +811,7 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID dao.Commit(db) if vendorID == model.VendorIDDada { storeList, err := dao.GetMissingDadaStores(db, storeID, false) - if err != nil && len(storeList) > 0 { + if err == nil && len(storeList) > 0 { storeList[0].DadaStoreID = storeCourierMap.VendorStoreID err = updateOrCreateDadaStore(storeList[0]) } else {