修改SetMTPSStatus调用
This commit is contained in:
@@ -1510,6 +1510,7 @@ func GetStoreCourierMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, ven
|
|||||||
cond[model.FieldVendorID] = vendorID
|
cond[model.FieldVendorID] = vendorID
|
||||||
}
|
}
|
||||||
err = dao.GetEntitiesByKV(db, &storeCourierMaps, cond, false)
|
err = dao.GetEntitiesByKV(db, &storeCourierMaps, cond, false)
|
||||||
|
globals.SugarLogger.Debug(storeCourierMaps)
|
||||||
if len(storeCourierMaps) != 0 {
|
if len(storeCourierMaps) != 0 {
|
||||||
//同步美团配送与否状态及美团门店是否存在
|
//同步美团配送与否状态及美团门店是否存在
|
||||||
for _, v := range storeCourierMaps {
|
for _, v := range storeCourierMaps {
|
||||||
@@ -1517,6 +1518,8 @@ func GetStoreCourierMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, ven
|
|||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
SetMTPSStatus(jxcontext.AdminCtx, v.StoreID, v.Status)
|
SetMTPSStatus(jxcontext.AdminCtx, v.StoreID, v.Status)
|
||||||
|
globals.SugarLogger.Debug("之后的storeCourierMaps")
|
||||||
|
globals.SugarLogger.Debug(storeCourierMaps)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1292,7 +1292,7 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
|
|||||||
sl := make(map[string]interface{})
|
sl := make(map[string]interface{})
|
||||||
sl["vendorStoreID"] = model.VendorIDMTPS
|
sl["vendorStoreID"] = model.VendorIDMTPS
|
||||||
sl["vendorStatus"] = 0
|
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())
|
UpdateStoreCourierMap(ctx, nil, StoreId, model.VendorIDMTPS, sl, ctx.GetUserName())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user