From cb4c3387bd4920e6165f02a3407624898e664463 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 25 Jul 2019 08:58:41 +0800 Subject: [PATCH] =?UTF-8?q?-=20NewActStoreSkuMap=E4=B8=AD=E8=A6=81?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=A4=A7=E4=BA=8E0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxutils/jxutils_act.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxutils/jxutils_act.go b/business/jxutils/jxutils_act.go index 7e9ce4d8e..63154d062 100644 --- a/business/jxutils/jxutils_act.go +++ b/business/jxutils/jxutils_act.go @@ -15,8 +15,8 @@ func NewActStoreSkuMap(actStoreSkuList []*model.ActStoreSku2, isActPrice bool) ( actStoreSkuMap[index] = make(map[int]*model.ActStoreSku2) } if actStoreSkuMap[index][v.VendorID] == nil || - (isActPrice && actStoreSkuMap[index][v.VendorID].ActualActPrice > v.ActualActPrice) || - (!isActPrice && actStoreSkuMap[index][v.VendorID].EarningPrice > v.EarningPrice) { + (isActPrice && actStoreSkuMap[index][v.VendorID].ActualActPrice > v.ActualActPrice && v.ActualActPrice > 0) || + (!isActPrice && actStoreSkuMap[index][v.VendorID].EarningPrice > v.EarningPrice && v.EarningPrice > 0) { actStoreSkuMap[index][v.VendorID] = v } }