返stock
This commit is contained in:
@@ -31,7 +31,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -711,13 +710,12 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
//物料订单的配送费另算,所以排除了免得多算一次
|
||||
if fromStoreID == 0 {
|
||||
sort.Sort(JxSkuInfoList(outJxOrder.Skus))
|
||||
outJxOrder.FreightPrice, _, err = delivery.CalculateDeliveryFee(dao.GetDB(), jxOrder.StoreID, "",
|
||||
jxutils.StandardCoordinate2Int(deliveryAddress.Lng), jxutils.StandardCoordinate2Int(deliveryAddress.Lat),
|
||||
model.CoordinateTypeMars, outJxOrder.Weight, checkTime)
|
||||
// outJxOrder.FreightPrice, _, err = delivery.CalculateDeliveryFee(dao.GetDB(), jxOrder.StoreID, "",
|
||||
// jxutils.StandardCoordinate2Int(deliveryAddress.Lng), jxutils.StandardCoordinate2Int(deliveryAddress.Lat),
|
||||
// model.CoordinateTypeMars, outJxOrder.Weight, checkTime)
|
||||
//TODO 2020-08-06 配送费固定5元
|
||||
outJxOrder.FreightPrice = 500
|
||||
}
|
||||
// if jxOrder.StoreID == specialStoreID {
|
||||
// outJxOrder.FreightPrice = 0
|
||||
// }
|
||||
} else {
|
||||
outJxOrder.FreightPrice = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user