src/main/java/com/yeshi/buwan/controller/admin/api/HomeTypeController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/job/PushJob.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/service/imp/ClassService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/service/imp/ResourceVideoService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/service/imp/StatisticsService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yeshi/buwan/sohu/SoHuUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/yeshi/buwan/controller/admin/api/HomeTypeController.java
@@ -95,7 +95,7 @@ @RequestMapping(value = "/addhomevideos", method = RequestMethod.POST) public void addHomeVideos(String videoids, String tag, String picture, String types, PrintWriter out) { List<HomeVideo> list = new ArrayList<HomeVideo>(); List<HomeVideo> list = new ArrayList<>(); String[] videos = videoids.split(","); String[] homeTypes = types.split(","); src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java
@@ -717,7 +717,7 @@ } else { List<VideoType> clist = classService.getFirstTypeList(parentId); list = new ArrayList<VideoType>(); list = new ArrayList<>(); if (clist != null) for (VideoType vt : clist) list.add(vt); src/main/java/com/yeshi/buwan/job/PushJob.java
@@ -34,8 +34,8 @@ List<VideoPushHistory> list = pushService.getUnPushVideoPushHistory();// 获取任务列表 for (VideoPushHistory vp : list) { List<LoginUser> userList = attentionService.getUserListByAttentionVideo(vp.getVideoInfo().getId()); List<String> androidUserList = new ArrayList<String>(); List<String> iosUserList = new ArrayList<String>(); List<String> androidUserList = new ArrayList<>(); List<String> iosUserList = new ArrayList<>(); for (LoginUser lu : userList) { // if // (systemService.getDetailSystemById(lu.getDetailsystem()).getPlatform() src/main/java/com/yeshi/buwan/service/imp/ClassService.java
@@ -238,7 +238,7 @@ (page - 1) * pageCount, pageCount, new Serializable[]{resourceWhere, orderby,}), resourceList); } List<VideoInfo> list = new ArrayList<VideoInfo>(); List<VideoInfo> list = new ArrayList<>(); long startTime = System.currentTimeMillis(); @@ -247,7 +247,7 @@ final String orderbyNew = orderby; list = (List<VideoInfo>) videoTypeDao.excute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { List<VideoInfo> list = new ArrayList<VideoInfo>(); List<VideoInfo> list = new ArrayList<>(); try { session.setCacheMode(CacheMode.GET); String sql = String.format( @@ -269,7 +269,7 @@ } public List<VideoInfo> getVideoInfoData(List list, List<Long> resourceIdList) { List<VideoInfo> dataList = new ArrayList<VideoInfo>(); List<VideoInfo> dataList = new ArrayList<>(); for (int i = 0; i < list.size(); i++) { Object[] obj = (Object[]) list.get(i); VideoInfo info = new VideoInfo(); @@ -283,7 +283,7 @@ info.setCommentCount(obj[7]!=null? Integer.parseInt(obj[7] + ""):0); if (obj.length > 8) { String[] resourceIds = (obj[8] + "").split(","); List<VideoResource> resourceList = new ArrayList<VideoResource>(); List<VideoResource> resourceList = new ArrayList<>(); for (String rid : resourceIds) resourceList.add(new VideoResource(rid)); info.setResourceList(resourceList); @@ -356,14 +356,14 @@ if (wheres.startsWith("or")) wheres = wheres.substring(2, wheres.length()); List<VideoInfo> list = new ArrayList<VideoInfo>(); List<VideoInfo> list = new ArrayList<>(); final String wheresNew = wheres; final String yearWhereNew = yearWhere; final String orderbyNew = orderby; list = (List<VideoInfo>) videoTypeDao.excute(new HibernateCallback<List<VideoInfo>>() { public List<VideoInfo> doInHibernate(Session session) throws HibernateException { List<VideoInfo> list = new ArrayList<VideoInfo>(); List<VideoInfo> list = new ArrayList<>(); try { list = session .createSQLQuery( @@ -382,7 +382,7 @@ } private List<VideoInfo> parseVideoListAmin(List list) { List<VideoInfo> resultList = new ArrayList<VideoInfo>(); List<VideoInfo> resultList = new ArrayList<>(); for (int i = 0; i < list.size(); i++) { Object[] objs = (Object[]) list.get(i); VideoInfo video = new VideoInfo(); @@ -586,7 +586,7 @@ .excute(new HibernateCallback<List<com.yeshi.buwan.domain.web.VideoTypeAdmin>>() { public List<com.yeshi.buwan.domain.web.VideoTypeAdmin> doInHibernate(Session session) throws HibernateException { List<com.yeshi.buwan.domain.web.VideoTypeAdmin> hotTypeList = new ArrayList<com.yeshi.buwan.domain.web.VideoTypeAdmin>(); List<com.yeshi.buwan.domain.web.VideoTypeAdmin> hotTypeList = new ArrayList<>(); try { List<DetailSystem> detailSystemList = session.createQuery("from DetailSystem ds where ds.system.id=" + systemId).list(); String where = ""; @@ -628,7 +628,7 @@ .createQuery("select vb.detailSystem from SuperVideoType vb where vb.type.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(); src/main/java/com/yeshi/buwan/service/imp/ResourceVideoService.java
@@ -36,7 +36,7 @@ @SuppressWarnings("unchecked") public List<ResourceVideo> getResourceList(final List<VideoInfo> list) { if (list == null || list.size() == 0) { return new ArrayList<ResourceVideo>(); return new ArrayList<>(); } return (List<ResourceVideo>) resourceVideoDao.excute(new HibernateCallback<List<ResourceVideo>>() { @Override src/main/java/com/yeshi/buwan/service/imp/StatisticsService.java
@@ -109,7 +109,7 @@ @Cacheable(value = "statisticCache", key = "'getDetailSystemWatchCount'+'-'+#from+'-'+#to+'-'+#detailSystem") @SuppressWarnings("rawtypes") public List<StatisticXY> getDetailSystemWatchCount(String from, String to, String detailSystem) { List<StatisticXY> xylist = new ArrayList<StatisticXY>(); List<StatisticXY> xylist = new ArrayList<>(); long fromS = TimeUtil.convertDateToTemp(from); long toS = TimeUtil.convertDateToTemp( TimeUtil.getGernalTime((TimeUtil.convertDateToTemp(to) + 1000 * 60 * 60 * 24L), "yyyy-MM-dd")); @@ -144,7 +144,7 @@ long fromS = TimeUtil.convertDateToTemp(from); long toS = TimeUtil.convertDateToTemp( TimeUtil.getGernalTime((TimeUtil.convertDateToTemp(to) + 1000 * 60 * 60 * 24L), "yyyy-MM-dd")); List<StatisticXY> xylist = new ArrayList<StatisticXY>(); List<StatisticXY> xylist = new ArrayList<>(); try { List list; if ("0".equalsIgnoreCase(detailsystem)) @@ -251,7 +251,7 @@ for (int i = 0; i < list.size(); i++) { Object[] objs = (Object[]) list.get(i); if (map.get(objs[2] + "") == null) map.put(objs[2] + "", new ArrayList<StatisticXY>()); map.put(objs[2] + "", new ArrayList<>()); StatisticXY xy = new StatisticXY(); xy.setTime(objs[1] + ""); xy.setY(Long.parseLong(objs[0] + "")); @@ -385,7 +385,7 @@ System.out.println(sql); final String fsql = sql; final List<StatisticXY> rlist = new ArrayList<StatisticXY>(); final List<StatisticXY> rlist = new ArrayList<>(); videoTypeDao.excute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { List list = session.createSQLQuery(fsql).list(); @@ -626,7 +626,7 @@ // 刷新视频详情数量 public void refreshVideoDetailCount(final String videoid) { List<VideoResource> list = videoResourceService.getResourceList(); List<Long> resourceList = new ArrayList<Long>(); List<Long> resourceList = new ArrayList<>(); for (VideoResource vr : list) resourceList.add(Long.parseLong(vr.getId())); VideoInfo info = videoDetailUtil.getVideoInfo(null, videoid, null, resourceList, src/main/java/com/yeshi/buwan/sohu/SoHuUtil.java
@@ -69,7 +69,7 @@ } public static List<Integer> getSecondCategory(int scode) { List<Integer> list = new ArrayList<Integer>(); List<Integer> list = new ArrayList<>(); switch (scode) { // 电视剧 @@ -566,7 +566,7 @@ @SuppressWarnings("unchecked") public void parseAll() { List<RootCategory> list =new ArrayList<RootCategory>(); //SoHuApi.rootCategoryList(); List<RootCategory> list =new ArrayList<>(); //SoHuApi.rootCategoryList(); RootCategory rc = new RootCategory(); rc.setCateId(9004); list.add(rc); @@ -617,7 +617,7 @@ sa.setTip(svc.getTip()); String c = SoHuApi.getVideoList(sa.getAid(), 1, 20).get("count") + ""; if (!StringUtil.isNullOrEmpty(c)) { List<SoHuVideo> vlist = new ArrayList<SoHuVideo>(); List<SoHuVideo> vlist = new ArrayList<>(); for (int p = 1; p < Integer.parseInt(c) / 50 + 2; p++) { List<SoHuVideo> videoList = (List<SoHuVideo>) SoHuApi .getVideoList(sa.getAid(), p, 50).get("data");