From b60d792194ef2dd74530cb885749bfded4a503fa Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 13 Jan 2020 10:42:26 +0800 Subject: [PATCH] =?UTF-8?q?UpdateActPrice4StoreSkuNameNew=E4=B8=ADbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store_sku.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index 3b94744b0..8d121023a 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -1433,7 +1433,7 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI v.EarningActID = actStoreSku.ActID } else { earningPrice := int(jxutils.CaculateSkuEarningPrice(int64(v.BindPrice), int64(v.BindPrice), skuName.PayPercentage)) - if earningPrice < v.EarningPrice { + if v.EarningPrice == 0 || earningPrice < v.EarningPrice { v.EarningPrice = earningPrice } }