- debug LockPromotionSkus
This commit is contained in:
@@ -834,7 +834,7 @@ func RefreshJdPromotionLockStatus(ctx *jxcontext.Context, promotionID int) (err
|
||||
}
|
||||
|
||||
func LockPromotionSkus(ctx *jxcontext.Context, promotionID int, isLock int, skuIDs []int) (num int64, err error) {
|
||||
globals.SugarLogger.Debugf("LockPromotionSkus promotionID:%d, isLock:%t, skuIDs:%v", promotionID, isLock, skuIDs)
|
||||
globals.SugarLogger.Debugf("begin LockPromotionSkus promotionID:%d, isLock:%t, skuIDs:%v", promotionID, isLock, skuIDs)
|
||||
if isLock != 0 {
|
||||
isLock = 1
|
||||
}
|
||||
@@ -865,6 +865,7 @@ func LockPromotionSkus(ctx *jxcontext.Context, promotionID int, isLock int, skuI
|
||||
RefreshJdStoreSkuStock()
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("end LockPromotionSkus promotionID:%d, isLock:%t, skuIDs:%v", promotionID, isLock, skuIDs)
|
||||
return num, err
|
||||
}
|
||||
|
||||
@@ -1000,10 +1001,12 @@ func createLocalPromotionFromRemote(promotionInfoId int64) (retVal *jdapi.Callba
|
||||
return jdapi.Err2CallbackResponse(nil, "")
|
||||
}
|
||||
|
||||
func UpdatePromotionStatusFromRemote(ctx *jxcontext.Context, prommotionID int) (err error) {
|
||||
func UpdatePromotionStatusFromRemote(ctx *jxcontext.Context, promotionID int) (err error) {
|
||||
globals.SugarLogger.Debugf("UpdatePromotionStatusFromRemote promotionID:%d", promotionID)
|
||||
|
||||
db := dao.GetDB()
|
||||
promotion := &model.Promotion{}
|
||||
promotion.ID = prommotionID
|
||||
promotion.ID = promotionID
|
||||
if err = dao.GetEntity(db, promotion); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user