- call RefreshJdStoreSkuStock only isLock true in LockPromotionSkus
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user