- make PromotionStore and PromotionSku ModelIDCULD
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user