diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 8d4f0061e..9d497b06b 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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 } } diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 0967c8d0a..b2d497485 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -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 }