From fc7a6634496066fe45dca8ea9832bdd2f7341db4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 13 十月 2020 10:25:39 +0800 Subject: [PATCH] 百度内容联盟前端分类,首页弹窗广告 --- src/main/java/com/yeshi/buwan/service/imp/VideoInfoService.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/VideoInfoService.java b/src/main/java/com/yeshi/buwan/service/imp/VideoInfoService.java index 762c25d..ad112e2 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/VideoInfoService.java +++ b/src/main/java/com/yeshi/buwan/service/imp/VideoInfoService.java @@ -183,4 +183,19 @@ return null; } + + public List<VideoInfo> listByVideoIds(List<String> videoIds) { + + return videoInfoDao.listByVideoIds(videoIds); + + } + + public void hiddenVideo(String id) { + VideoInfo videoInfo = videoInfoDao.find(VideoInfo.class, id); + if (videoInfo != null && "1".equalsIgnoreCase(videoInfo.getShow())) { + videoInfo.setShow("0"); + videoInfoDao.update(videoInfo); + } + } + } -- Gitblit v1.8.0