修改SetMTPSStatus方法的名字判断

This commit is contained in:
平凡梦
2020-07-13 11:28:35 +08:00
parent c54ddb01e3
commit bb05911858

View File

@@ -1353,16 +1353,18 @@ func SetMTPSStatus(ctx *jxcontext.Context, storeId, courierStatus int) {
return return
} }
ifExist: ifExist:
if StoreInfoList.DataList[0].OuterPoiID != "" { {
//若存在且名字不为空,就是找到了 if StoreInfoList.DataList[0].OuterPoiID != "" {
if StoreInfoList.DataList[0].OpenType != courierStatus { //若存在且名字不为空,就是找到了
sl := make(map[string]interface{}) if StoreInfoList.DataList[0].OpenType != courierStatus {
sl["vendorStoreID"] = StoreInfoList.DataList[0].OuterPoiID sl := make(map[string]interface{})
sl["status"] = StoreInfoList.DataList[0].OpenType sl["vendorStoreID"] = StoreInfoList.DataList[0].OuterPoiID
sl["vendorStatus"] = StoreInfoList.DataList[0].OpenType sl["status"] = StoreInfoList.DataList[0].OpenType
globals.SugarLogger.Debugf("被修改配送状态的VendorStoreID是:%s,名称是:%s,美团状态是:%s,本地状态是:%s", sl["vendorStatus"] = StoreInfoList.DataList[0].OpenType
StoreInfoList.DataList[0].OuterPoiID, StoreInfoList.DataList[0].PoiName, strconv.Itoa(StoreInfoList.DataList[0].OpenType), strconv.Itoa(StoreLists[0].Status)) globals.SugarLogger.Debugf("被修改配送状态的VendorStoreID是:%s,名称是:%s,美团状态是:%s,本地状态是:%s",
UpdateStoreCourierMap(ctx, nil, storeId, model.VendorIDMTPS, sl, ctx.GetUserName()) StoreInfoList.DataList[0].OuterPoiID, StoreInfoList.DataList[0].PoiName, strconv.Itoa(StoreInfoList.DataList[0].OpenType), strconv.Itoa(StoreLists[0].Status))
UpdateStoreCourierMap(ctx, nil, storeId, model.VendorIDMTPS, sl, ctx.GetUserName())
}
} }
} }
} else { } else {