diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 4012b94b3..fcc8e98d6 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1667,7 +1667,7 @@ func checkPriceDefendOrderByPrice(db *dao.DaoDB, storeID, skuID, stock, jxPrice } for _, v := range priceDefends { //如果刚好守的价和降的价一样,再判断库存够不够 - if v.DefendPrice <= int64(jxPrice) { + if v.DefendPrice > int64(jxPrice) { if v.Count <= stock { stock -= v.Count v.IsSuccess = model.YES diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 9606e6b90..34bda519c 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -873,9 +873,7 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64 if err == nil { outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice outJxOrder.ActualPayPrice = outJxOrder.TotalPrice - fmt.Println("testststststststst", utils.Format4Output(outJxOrder, false)) outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice - fmt.Println("tes111111111111111", utils.Format4Output(outJxOrder, false)) } else { outJxOrder = nil deliveryAddress = nil