From f70c82821a26c1cda2895a31183dbf2714a6ca6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 24 May 2022 09:44:45 +0800 Subject: [PATCH] 1 --- business/partner/purchase/jx/localjx/order.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 4872a876a..5fd38b94f 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -1004,10 +1004,13 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64 outJxOrder.FreightPrice = 0 } } + // B2B门店,订单不足一千配送费一百 + globals.SugarLogger.Debug("=====1",jxOrder.StoreID,jxOrder.StoreName,storeDetail.BrandName,outJxOrder.FreightPrice) if strings.Contains(storeDetail.BrandName, model.B2BTag) && jxOrder.OrderPrice < 10000 { outJxOrder.FreightPrice = 10000 // b2b运费一百元 } + globals.SugarLogger.Debug("====2",outJxOrder.FreightPrice) // 订单超过一千配送费优惠(门店运费) discountPrice, err := cms.GetStoreVendorMaps(ctx, nil, jxOrder.StoreID, -1) if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {