修改SetMTPSStatus调用

This commit is contained in:
平凡梦
2020-07-09 14:22:35 +08:00
parent 809612bd1d
commit adfee67070
2 changed files with 3 additions and 1 deletions

View File

@@ -1517,6 +1517,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)
storeCourierMaps = nil
err = dao.GetEntitiesByKV(db, &storeCourierMaps, cond, false)
break break
} }
} }

View File

@@ -1288,7 +1288,7 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
StoreLists, _ := dao.GetStoreList(nil, []int{StoreId}, nil, nil, nil, "") StoreLists, _ := dao.GetStoreList(nil, []int{StoreId}, nil, nil, nil, "")
StoreInfoList, _ := api.MtpsAPI.GetStoreStatus(StoreLists[0].Name) StoreInfoList, _ := api.MtpsAPI.GetStoreStatus(StoreLists[0].Name)
globals.SugarLogger.Debug("美团查询结果", StoreInfoList) globals.SugarLogger.Debug("美团查询结果", StoreInfoList)
if StoreInfoList == nil && StoreInfoList.DataList == nil { if StoreInfoList == nil || StoreInfoList.DataList == nil {
sl := make(map[string]interface{}) sl := make(map[string]interface{})
sl["vendorStoreID"] = model.VendorIDMTPS sl["vendorStoreID"] = model.VendorIDMTPS
sl["status"] = 0 sl["status"] = 0