This commit is contained in:
richboo111
2022-11-04 18:49:33 +08:00
parent aa1b322ec9
commit 6b3c4574f0

View File

@@ -105,7 +105,6 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
localStore *LocalStore
vertex []warehouse_createFence_request.VerticesItem
param = &warehouse_createFence_request.WarehouseCreateFenceParam{}
circular = warehouse_createFence_request.Circular{}
)
sqlParam := []interface{}{}
sqlStr := `SELECT t.lng,t.lat,t.delivery_range_type,t.delivery_range FROM store t`
@@ -131,7 +130,6 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
},
},
}
globals.SugarLogger.Debug("圆lat,lng", circular.Center.Latitude, circular.Center.Longitude)
} else if localStore.DeliveryRangeType == LocalShapePolygon {
tempStr := strings.Split(localStore.DeliveryRange, ";")
for v := len(tempStr) - 1; v >= 0; v-- {