str
This commit is contained in:
@@ -28,10 +28,10 @@ const (
|
||||
)
|
||||
|
||||
// /warehouse/create 创建单个区域仓
|
||||
func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID int64, err error) {
|
||||
func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID string, err error) {
|
||||
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), int(storeID), 0, "")
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("获取门店本地信息失败:%v", err)
|
||||
return "", fmt.Errorf("获取门店本地信息失败:%v", err)
|
||||
}
|
||||
param := &warehouse_create_request.WarehouseCreateParam{
|
||||
OutWarehouseId: utils.Int64ToStr(storeID), //本地storeID绑定
|
||||
@@ -49,9 +49,9 @@ func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID int64, err e
|
||||
}
|
||||
resp, err := getAPI(appOrgCode, 0, "").CreateWarehouse(param)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("创建单个区域仓失败:%v", err)
|
||||
return "", fmt.Errorf("创建单个区域仓失败:%v", err)
|
||||
}
|
||||
return resp.Data, nil
|
||||
return resp.WarehouseId, nil
|
||||
}
|
||||
|
||||
// /warehouse/createBatch 批量创建区域仓
|
||||
@@ -146,7 +146,7 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
||||
tempStr := strings.Split(localStore.DeliveryRange, ";")
|
||||
for v := len(tempStr) - 1; v >= 0; v-- {
|
||||
s2 := strings.Split(tempStr[v], ",")
|
||||
globals.SugarLogger.Debugf("len==%d\n,2[0]==%s\n", len(s2), s2[0])
|
||||
globals.SugarLogger.Debugf("len==%d\n,s2[0]==%s\n,s2==%s", len(s2), s2[0], s2)
|
||||
tLng, err1 := strconv.ParseFloat(s2[0], 64)
|
||||
tLat, err2 := strconv.ParseFloat(s2[1], 64)
|
||||
if err1 != nil || err2 != nil {
|
||||
|
||||
Reference in New Issue
Block a user