| | |
| | | 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; |
| | |
| | | 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) |
| | |
| | | |
| | | 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 = ""; |
| | |
| | | .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(); |
| | |
| | | |
| | | 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 = ""; |
| | |
| | | .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(); |