admin
2020-10-15 1eac0e8d2e70dd5a6271793616748209c7dfa916
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);
        }
    }
}