1
This commit is contained in:
@@ -686,6 +686,7 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way
|
|||||||
courierDistance = float64(v.Distance)
|
courierDistance = float64(v.Distance)
|
||||||
}
|
}
|
||||||
nowCourierDrop := int64(math.Ceil((courierDistance / float64(v.Distance)) * float64(len(riderLine)))) // 当前骑手骑行距离,占中的骑行距离百分比.
|
nowCourierDrop := int64(math.Ceil((courierDistance / float64(v.Distance)) * float64(len(riderLine)))) // 当前骑手骑行距离,占中的骑行距离百分比.
|
||||||
|
v.CourierCoordinate = riderLine[nowCourierDrop]
|
||||||
if nowCourierDrop >= int64(len(riderLine)) {
|
if nowCourierDrop >= int64(len(riderLine)) {
|
||||||
v.CourierCoordinate = riderLine[nowCourierDrop-1]
|
v.CourierCoordinate = riderLine[nowCourierDrop-1]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6692,16 +6692,23 @@ func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string][]mtwmap
|
|||||||
}
|
}
|
||||||
|
|
||||||
// BatchSetMTBoxPrice 批量修改美团包装费为0
|
// BatchSetMTBoxPrice 批量修改美团包装费为0
|
||||||
//func BatchSetMTBoxPrice(jxStoreId []int64) error {
|
//func BatchSetMTBoxPrice(jxStoreId []int) error {
|
||||||
// utils.CallFuncAsync(func() {
|
// var db = dao.GetDB()
|
||||||
// for _, v := range jxStoreId {
|
// for _, v := range jxStoreId {
|
||||||
// storeSkuList, err := dao.GetStoresSkusInfo(dao.GetDB(), []int{int(v)}, nil)
|
// storeSkuList, err := dao.GetStoresSkusInfo(db, []int{v}, nil)
|
||||||
// if err != nil {
|
// if err != nil {
|
||||||
// return
|
// return err
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
|
// storeDetail, err := dao.GetStoreDetail(db, v, model.VendorIDMTWM, "")
|
||||||
|
// if err != nil {
|
||||||
|
// return err
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// utils.CallFuncAsync(func() {
|
||||||
|
//
|
||||||
// })
|
// })
|
||||||
// return nil
|
// return nil
|
||||||
//}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user