admin
2021-04-25 36aafca8d6c1964bb755fe2ae030b163b6d0f92b
src/main/java/com/yeshi/buwan/controller/admin/api/HomeTypeController.java
@@ -13,6 +13,7 @@
import com.yeshi.buwan.domain.recommend.HomeRecommendSpecial;
import com.yeshi.buwan.service.inter.recommend.HomeRecommendSpecialService;
import com.yeshi.buwan.service.inter.recommend.HomeVideoService;
import com.yeshi.buwan.util.SystemUtil;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
@@ -42,6 +43,9 @@
    @Resource
    private HomeTypeService homeTypeService;
    @Resource
    private HomeVideoService homeVideoService;
    @Resource
    private HomeRecommendSpecialService homeRecommendSpecialService;
@@ -138,7 +142,7 @@
                    hv.setTag(tag);
                }
                hv.setType(new HomeType(ht));
                hv.setVideo(new VideoInfo(vid));
                hv.setVideoId(vid);
                hv.setBigPicture(false);
                list.add(hv);
            }
@@ -278,12 +282,12 @@
    @RequestMapping(value = "/gethomevideolist", method = RequestMethod.POST)
    public void getHomeVideoList(long id, int page, String key, PrintWriter out) {
        key = StringUtil.isNullOrEmpty(key) ? "" : key;
        List<HomeVideo> list = homeTypeService.getHomeVideoList(id + "", key, page);
        List<HomeVideo> list = homeVideoService.getHomeVideoList(id + "", key, page);
        for (HomeVideo homeVideo : list) {
            homeVideo.setType(null);
            homeVideo.setAdmin(null);
        }
        long count = homeTypeService.getHomeVideoListCount(id + "", key);
        long count = homeVideoService.getHomeVideoListCount(id + "", key);
        PageEntity pe = new PageEntity();
        pe.setPageIndex(page);
        pe.setPageSize(Constant.pageCount);