This commit is contained in:
邹宗楠
2022-05-24 10:24:44 +08:00
parent 82260315c0
commit 8ba3d7b6f1

View File

@@ -1012,7 +1012,7 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
// 订单超过一千配送费优惠(门店运费)
discountPrice, err := cms.GetStoreVendorMaps(ctx, nil, jxOrder.StoreID, -1)
if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {
outJxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
outJxOrder.FreightPrice = outJxOrder.FreightPrice - int64(discountPrice[0].DeliveryFeeDeductionFee)
}
if err == nil {