| | |
| | | } |
| | | |
| | | public static List<HomeAd> getIOSTestHomeAdList() { |
| | | List<HomeAd> list = new ArrayList<HomeAd>(); |
| | | List<HomeAd> list = new ArrayList<>(); |
| | | HomeAd ad = new HomeAd(); |
| | | ad.setPicture("http://img.zcool.cn/community/01a5a7562499216ac7254878995802.jpg"); |
| | | VideoInfo info = new VideoInfo(); |
| | |
| | | public List<HomeAdAdmin> getHomeAdAdmin(final String key, final int detailSystem, final int page) { |
| | | return (List<HomeAdAdmin>) homeAdDao.excute(new HibernateCallback<List<HomeAdAdmin>>() { |
| | | public List<HomeAdAdmin> doInHibernate(Session session) throws HibernateException { |
| | | List<HomeAdAdmin> zhiBoClassList = new ArrayList<HomeAdAdmin>(); |
| | | List<HomeAdAdmin> zhiBoClassList = new ArrayList<>(); |
| | | try { |
| | | List<DetailSystem> detailSystemList = session.createQuery("from DetailSystem").list(); |
| | | String sql = ""; |
| | |
| | | .createQuery("select vb.detailSystem from SuperHomeAd vb where vb.homeAd.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(); |