From 04f09e52ffd4681bdfd85e51acd3da0d1280c3d3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 16 四月 2022 16:07:10 +0800 Subject: [PATCH] bug修复 --- src/main/java/com/yeshi/buwan/service/imp/StarService.java | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/StarService.java b/src/main/java/com/yeshi/buwan/service/imp/StarService.java index e206970..9555280 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/StarService.java +++ b/src/main/java/com/yeshi/buwan/service/imp/StarService.java @@ -36,8 +36,7 @@ public class StarService { @Resource private HotStarDao hotStarDao; - @Resource - private VideoInfoDao videoInfoDao; + @Resource private SuperHotStarDao superHotStarDao; @@ -82,22 +81,6 @@ return hotStarDao.getCount("select count(*) from SuperHotStar s where s.detailSystem.id=?", new String[]{detailSystem}); - } - - public List<VideoInfo> getHotStarVideo(String starId, int page) { - - List<VideoInfo> list = videoInfoDao.list( - "select h.video from HotStarVideo as h LEFT JOIN h.video as v where h.video.show='1' and v.id=h.video.id and h.star.id=? order by h.video.updatetime desc", - (page - 1) * Constant.pageCount, Constant.pageCount, new String[]{starId}); - return list; - } - - public long getHotStarVideoCount(String starId) { - - long count = hotStarDao.getCount( - "select count(*) from HotStarVideo as h where h.video.show='1' and h.star.id=?", - new String[]{starId}); - return count; } public List<HotStar> getStarList() { -- Gitblit v1.8.0