- 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...)
|
num, err = dao.ExecuteSQL(db, sql, sqlParams...)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
RefreshJdPromotionLockStatus(promotionID)
|
RefreshJdPromotionLockStatus(promotionID)
|
||||||
RefreshJdStoreSkuStock()
|
if isLock {
|
||||||
|
RefreshJdStoreSkuStock()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return num, err
|
return num, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user