This commit is contained in:
邹宗楠
2024-09-04 09:38:06 +08:00
parent 6d979364b1
commit 1f94f2d841
3 changed files with 19 additions and 19 deletions

View File

@@ -610,7 +610,7 @@ func GetSToURidingDistance(sLng, sLat, uLng, uLat float64, orderId string) (step
}
// GetSToURidingDistance2 获取商家与用户间步行距离
func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (wayBill *model.Waybill, err error) {
func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string, vendors []int64) (wayBill *model.Waybill, err error) {
var (
db = dao.GetDB()
vendorMaps = map[int]int{model.VendorIDDada: 1, model.VendorIDFengNiao: 1, model.VendorIDMTPS: 1, model.VendorIDUUPT: 1, model.VendorIDSFPS: 1}
@@ -618,7 +618,7 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way
for {
// 骑手坐标
waybills, err := dao.GetWaybills(db, orderId, nil)
waybills, err := dao.GetWaybills(db, orderId, vendors)
if err != nil {
return nil, err
}