admin
2022-01-28 cd7767932dddeaf6d9c73a83d4a9b38f0341b77f
src/main/java/com/yeshi/buwan/controller/admin/VideoTypeController.java
@@ -12,6 +12,7 @@
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.yeshi.buwan.service.inter.recommend.HomeVideoService;
import com.yeshi.buwan.util.SystemUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -22,7 +23,7 @@
import com.yeshi.buwan.domain.HomeNotice;
import com.yeshi.buwan.domain.HomeType;
import com.yeshi.buwan.domain.HomeVideo;
import com.yeshi.buwan.domain.SystemInfo;
import com.yeshi.buwan.domain.system.SystemInfo;
import com.yeshi.buwan.domain.VideoInfo;
import com.yeshi.buwan.domain.VideoIntersection;
import com.yeshi.buwan.domain.VideoType;
@@ -53,6 +54,11 @@
    private ClassService classService;
    @Resource
    private HomeTypeService homeTypeService;
    @Resource
    private HomeVideoService homeVideoService;
    @Resource
    private HomeAdService homeAdService;
@@ -75,7 +81,7 @@
        }
        String type = req.getParameter("type");
        if (type.equalsIgnoreCase("getResource")) {// 获取来源列表
            out.print(videoResourceService.resourceListToJson(videoResourceService.getResourceList(), null));
            out.print(videoResourceService.resourceListToJson(videoResourceService.getResourceList()));
        } else if (type.equalsIgnoreCase("getNextVideoTypeList")) {// 获取下级分类
            String id = req.getParameter("id");
            List<VideoType> list = classService.getFirstTypeList(id);
@@ -428,7 +434,7 @@
            String picture = req.getParameter("picture");
            HomeVideo video = homeTypeService.getHomeVideoById(id);
            video.setPicture(picture);
            homeTypeService.updateHomeVideo(video);
            homeVideoService.updateHomeVideo(video);
            req.setAttribute("id", id);
            return "homevideo_update";
        }