This commit is contained in:
gazebo
2019-04-18 19:20:09 +08:00
parent d93906c5e9
commit 1ca4d9aef2

View File

@@ -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 {