- fix bug in CancelJdPromotion

This commit is contained in:
gazebo
2018-11-05 15:50:48 +08:00
parent f24a9d6bb6
commit 5cfae50cc7

View File

@@ -534,7 +534,7 @@ func GetJdPromotions(ctx *jxcontext.Context, keyword string, params map[string]i
func CancelJdPromotion(ctx *jxcontext.Context, promotionID int) (err error) {
db := dao.GetDB()
promotion := model.Promotion{}
promotion := &model.Promotion{}
promotion.ID = promotionID
if err = dao.GetEntity(db, promotion); err != nil {
return err