| | |
| | | |
| | | import com.yeshi.buwan.dao.HotTypeDao; |
| | | import com.yeshi.buwan.dao.SuperHotTypeDao; |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.HotVideoType; |
| | | import com.yeshi.buwan.domain.SuperHotType; |
| | | import com.yeshi.buwan.domain.web.DetailSystemSelect; |
| | |
| | | private HotTypeDao hotTypeDao; |
| | | @Resource |
| | | private SuperHotTypeDao superHotTypeDao; |
| | | |
| | | public SuperHotTypeDao getSuperHotTypeDao() { |
| | | return superHotTypeDao; |
| | | } |
| | | |
| | | public void setSuperHotTypeDao(SuperHotTypeDao superHotTypeDao) { |
| | | this.superHotTypeDao = superHotTypeDao; |
| | | } |
| | | |
| | | public HotTypeDao getHotTypeDao() { |
| | | return hotTypeDao; |
| | | } |
| | | |
| | | public void setHotTypeDao(HotTypeDao hotTypeDao) { |
| | | this.hotTypeDao = hotTypeDao; |
| | | } |
| | | |
| | | // 获取热门频道 |
| | | public List<HotVideoType> getHotTypeList() { |
| | |
| | | |
| | | return (List<HotTypeAdmin>) hotTypeDao.excute(new HibernateCallback() { |
| | | public Object doInHibernate(Session session) throws HibernateException { |
| | | List<HotTypeAdmin> hotTypeList = new ArrayList<HotTypeAdmin>(); |
| | | List<HotTypeAdmin> hotTypeList = new ArrayList<>(); |
| | | try { |
| | | List<DetailSystem> detailSystemList = session.createQuery("from DetailSystem").list(); |
| | | String where = ""; |
| | |
| | | .createQuery("select vb.detailSystem from SuperHotType vb where vb.hotType.id=?") |
| | | .setParameter(0, vb.getId()).list(); |
| | | |
| | | List<DetailSystemSelect> dssList = new ArrayList<DetailSystemSelect>(); |
| | | List<DetailSystemSelect> dssList = new ArrayList<>(); |
| | | |
| | | for (DetailSystem ds : detailSystemList) { |
| | | DetailSystemSelect dss = new DetailSystemSelect(); |