- make PromotionStore and PromotionSku ModelIDCULD

This commit is contained in:
gazebo
2018-11-05 17:02:34 +08:00
parent 95e6ab402e
commit ef9739f00c
2 changed files with 8 additions and 4 deletions

View File

@@ -269,6 +269,7 @@ func CreateJdPromotion(ctx *jxcontext.Context, isIDJd bool, isAsync bool, params
PromotionID: promotion.ID,
StoreID: storeID,
}
dao.WrapAddIDCULDEntity(promotionStore, ctx.GetUserName())
if err = dao.CreateEntity(db, promotionStore); err != nil {
return "", err
}
@@ -281,6 +282,7 @@ func CreateJdPromotion(ctx *jxcontext.Context, isIDJd bool, isAsync bool, params
Price: skuPrice.Price,
LimitSkuCount: skuPrice.LimitSkuCount,
}
dao.WrapAddIDCULDEntity(promotionSku, ctx.GetUserName())
if err = dao.CreateEntity(db, promotionSku); err != nil {
return "", err
}