This commit is contained in:
richboo111
2022-11-01 10:10:56 +08:00
parent 927c61c956
commit e53854bcd1

View File

@@ -5871,14 +5871,16 @@ func GetDDScope(ctx *jxcontext.Context, storeID int, vendorStoreID string) (ware
return data, errors.New("storeID,vendorStoreID 必填")
}
storeMap, err := GetVendorOrgCode(ctx, dao.GetDB(), storeID, model.VendorIDDD, vendorStoreID)
globals.SugarLogger.Debug("len(storeMap)=================%d", len(storeMap))
if err != nil {
return data, errors.New(fmt.Sprintf("获取vendorOrgCode失败请检查数据或重试:%v", err))
}
globals.SugarLogger.Debug("storeMap[0].VendorOrgCode=================%d", storeMap[0].VendorOrgCode)
bindWarehouse, err := tiktok_store.GetWarehouseByStore(storeMap[0].VendorOrgCode, int64(storeID))
if err != nil {
return data, errors.New(fmt.Sprintf("获取门店(%d) 绑定fenceID失败:%v", storeID, err))
}
globals.SugarLogger.Debug("len(bindWarehouse),bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds[0]=================%d", len(bindWarehouse), bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds[0])
resp, err := tiktok_store.GetFence(storeMap[0].VendorOrgCode, bindWarehouse[0][utils.Str2Int(vendorStoreID)].OutFenceIds[0])
if err != nil {
return data, err