admin
2021-03-20 ad3ac53da1c3a11a96ae62d790aa61a81b9eab91
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();