修改SetMTPSStatus调用

This commit is contained in:
平凡梦
2020-07-09 14:51:22 +08:00
parent c358d7a981
commit dcf342df98
2 changed files with 4 additions and 1 deletions

View File

@@ -1510,6 +1510,7 @@ func GetStoreCourierMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, ven
cond[model.FieldVendorID] = vendorID
}
err = dao.GetEntitiesByKV(db, &storeCourierMaps, cond, false)
globals.SugarLogger.Debug(storeCourierMaps)
if len(storeCourierMaps) != 0 {
//同步美团配送与否状态及美团门店是否存在
for _, v := range storeCourierMaps {
@@ -1517,6 +1518,8 @@ func GetStoreCourierMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, ven
continue
} else {
SetMTPSStatus(jxcontext.AdminCtx, v.StoreID, v.Status)
globals.SugarLogger.Debug("之后的storeCourierMaps")
globals.SugarLogger.Debug(storeCourierMaps)
break
}
}

View File

@@ -1292,7 +1292,7 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
sl := make(map[string]interface{})
sl["vendorStoreID"] = model.VendorIDMTPS
sl["vendorStatus"] = 0
globals.SugarLogger.Debug("因为没找到被修改配送状态的VendorStoreID是", StoreLists[0].Name)
globals.SugarLogger.Debug("因为没找到被修改配送状态的VendorStoreID是", StoreLists[0].Name, StoreId)
UpdateStoreCourierMap(ctx, nil, StoreId, model.VendorIDMTPS, sl, ctx.GetUserName())
return
}