From 5ed74064a7b3d9880d7d5d4b23068964735876bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 29 Sep 2020 14:58:49 +0800 Subject: [PATCH] mtps --- business/jxstore/cms/store_sku.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index aed0e04dd..4158ee3ce 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -3389,7 +3389,11 @@ func FocusStoreSkusBySku(ctx *jxcontext.Context, skuBindInfos []*StoreSkuBindInf } priceReferList, _ := dao.GetPriceReferSnapshotNoPage(db, []int{0}, nil, []int{skuList[0].NameID}, utils.Time2Date(time.Now().AddDate(0, 0, -1))) if len(priceReferList) > 0 { - price = priceReferList[0].MidUnitPrice / payPercentage * 100 + if payPercentage == 100 { + price = priceReferList[0].MidUnitPrice * payPercentage / 100 + } else { + price = priceReferList[0].MidUnitPrice / payPercentage * 100 + } } } skuBindSkuInfo := &StoreSkuBindSkuInfo{