From 62a7a5773014748cc858e8178f18f16072929561 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 7 Nov 2018 13:23:28 +0800 Subject: [PATCH] - call RefreshJdStoreSkuStock only isLock true in LockPromotionSkus --- business/jxstore/promotion/jd_promotion.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/promotion/jd_promotion.go b/business/jxstore/promotion/jd_promotion.go index 6ed360d5c..b228fcadd 100644 --- a/business/jxstore/promotion/jd_promotion.go +++ b/business/jxstore/promotion/jd_promotion.go @@ -818,7 +818,9 @@ func LockPromotionSkus(ctx *jxcontext.Context, promotionID int, isLock bool, sku num, err = dao.ExecuteSQL(db, sql, sqlParams...) if err == nil { RefreshJdPromotionLockStatus(promotionID) - RefreshJdStoreSkuStock() + if isLock { + RefreshJdStoreSkuStock() + } } return num, err }