From 57cc23f36b8e9ecfefc74248358880de6bbc23ee Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 28 Nov 2019 13:51:17 +0800 Subject: [PATCH] =?UTF-8?q?ForceUpdateVendorPrice=E4=B8=AD=E7=94=B1ActPric?= =?UTF-8?q?e=E6=9B=BF=E6=8D=A2ActualActPrice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 0631a04e4..542a4c190 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -954,18 +954,18 @@ func ForceUpdateVendorPrice(ctx *jxcontext.Context, vendorID int, actType int, s if err = dao.GetEntity(db, storeSkuBind, model.FieldStoreID, model.FieldSkuID, model.FieldDeletedAt); err == nil { vendorPrice := int(v.VendorPrice) if vendorPrice != 0 { - if err2 := checkDiscountValidation(actType, float64(v.ActualActPrice)*100/float64(v.VendorPrice)); err2 != nil { + if err2 := checkDiscountValidation(actType, float64(v.ActPrice)*100/float64(v.VendorPrice)); err2 != nil { v.ErrMsg = err2.Error() wrongSkuList = append(wrongSkuList, v) storeSkuBind = nil } } else { vendorPrice = dao.GetStoreSkuBindVendorPrice(storeSkuBind, vendorID) - if checkDiscountValidation(actType, float64(v.ActualActPrice)*100/float64(vendorPrice)) != nil { + if checkDiscountValidation(actType, float64(v.ActPrice)*100/float64(vendorPrice)) != nil { if actType == model.ActSkuSecKill { - vendorPrice = int(v.ActualActPrice)*100/maxDiscount4SkuSecKill + 10 + vendorPrice = int(v.ActPrice)*100/maxDiscount4SkuSecKill + 10 } else if actType == model.ActSkuDirectDown { - vendorPrice = int(v.ActualActPrice) + 10 + vendorPrice = int(v.ActPrice) + 10 } } else { storeSkuBind = nil