From b37275dba6b782bf3bb3817c4504f6cdef1bef7c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 18 三月 2021 18:38:51 +0800 Subject: [PATCH] APP首页顶部标签兼容 --- src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java | 26 +++++--------------------- 1 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java b/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java index 8d5a039..6a484fd 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java +++ b/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java @@ -16,7 +16,7 @@ import com.yeshi.buwan.dao.VideoBanQuanDao; import com.yeshi.buwan.dao.VideoBanQuanVideoDao; import com.yeshi.buwan.dao.WebVideoDao; -import com.yeshi.buwan.domain.DetailSystem; +import com.yeshi.buwan.domain.system.DetailSystem; import com.yeshi.buwan.domain.HomeVideo; import com.yeshi.buwan.domain.VideoBanQuan; import com.yeshi.buwan.domain.VideoBanQuanVideo; @@ -36,22 +36,6 @@ private VideoBanQuanVideoDao videoBanQuanVideoDao; @Resource private WebVideoDao webVideoDao; - - public VideoBanQuanVideoDao getVideoBanQuanVideoDao() { - return videoBanQuanVideoDao; - } - - public void setVideoBanQuanVideoDao(VideoBanQuanVideoDao videoBanQuanVideoDao) { - this.videoBanQuanVideoDao = videoBanQuanVideoDao; - } - - public VideoBanQuanDao getVideoBanQuanDao() { - return videoBanQuanDao; - } - - public void setVideoBanQuanDao(VideoBanQuanDao videoBanQuanDao) { - this.videoBanQuanDao = videoBanQuanDao; - } @SuppressWarnings("unchecked") @CacheEvict(value = "topCache", allEntries = true) @@ -383,7 +367,7 @@ return (List<BanquanKeyAdmin>) videoBanQuanDao.excute(new HibernateCallback<List<BanquanKeyAdmin>>() { public List<BanquanKeyAdmin> doInHibernate(Session session) throws HibernateException { - List<BanquanKeyAdmin> banquanList = new ArrayList<BanquanKeyAdmin>(); + List<BanquanKeyAdmin> banquanList = new ArrayList<>(); try { List<DetailSystem> detailSystemList = session.createQuery("from DetailSystem").list(); String where = ""; @@ -402,7 +386,7 @@ .createQuery("select vb.detailSystem from VideoBanQuan vb where vb.name=?") .setParameter(0, vb.getName()).list(); - List<DetailSystemSelect> dssList = new ArrayList<DetailSystemSelect>(); + List<DetailSystemSelect> dssList = new ArrayList<>(); for (DetailSystem ds : detailSystemList) { DetailSystemSelect dss = new DetailSystemSelect(); @@ -507,7 +491,7 @@ return (List<BanquanVideoAdmin>) videoBanQuanDao.excute(new HibernateCallback<List<BanquanVideoAdmin>>() { public List<BanquanVideoAdmin> doInHibernate(Session session) throws HibernateException { - List<BanquanVideoAdmin> banquanList = new ArrayList<BanquanVideoAdmin>(); + List<BanquanVideoAdmin> banquanList = new ArrayList<>(); try { List<DetailSystem> detailSystemList = session.createQuery("from DetailSystem").list(); String where = ""; @@ -526,7 +510,7 @@ .createQuery("select vb.detailSystem from VideoBanQuanVideo vb where vb.info.id=?") .setParameter(0, vb.getInfo().getId()).list(); - List<DetailSystemSelect> dssList = new ArrayList<DetailSystemSelect>(); + List<DetailSystemSelect> dssList = new ArrayList<>(); for (DetailSystem ds : detailSystemList) { DetailSystemSelect dss = new DetailSystemSelect(); -- Gitblit v1.8.0