| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.HomeAd; |
| | | import com.yeshi.buwan.domain.HomeNotice; |
| | | import com.yeshi.buwan.domain.HomeType; |
| | |
| | | @Resource |
| | | private HomeNoticeService homeNoticeService; |
| | | |
| | | public BanQuanService getBanQuanService() { |
| | | return banQuanService; |
| | | } |
| | | |
| | | public void setBanQuanService(BanQuanService banQuanService) { |
| | | this.banQuanService = banQuanService; |
| | | } |
| | | |
| | | public HomeAdService getHomeAdService() { |
| | | return homeAdService; |
| | | } |
| | | |
| | | public void setHomeAdService(HomeAdService homeAdService) { |
| | | this.homeAdService = homeAdService; |
| | | } |
| | | |
| | | public HomeTypeService getHomeTypeService() { |
| | | return homeTypeService; |
| | | } |
| | | |
| | | public void setHomeTypeService(HomeTypeService homeTypeService) { |
| | | this.homeTypeService = homeTypeService; |
| | | } |
| | | |
| | | public ClassService getClassService() { |
| | | return classService; |
| | | } |
| | | |
| | | public void setClassService(ClassService classService) { |
| | | this.classService = classService; |
| | | } |
| | | |
| | | public AdService getAdService() { |
| | | return adService; |
| | | } |
| | | |
| | | public void setAdService(AdService adService) { |
| | | this.adService = adService; |
| | | } |
| | | |
| | | public SearchService getSearchService() { |
| | | return searchService; |
| | | } |
| | | |
| | | public void setSearchService(SearchService searchService) { |
| | | this.searchService = searchService; |
| | | } |
| | | |
| | | public HotVideoTypeService getHotVideoTypeService() { |
| | | return hotVideoTypeService; |
| | | } |
| | | |
| | | public void setHotVideoTypeService(HotVideoTypeService hotVideoTypeService) { |
| | | this.hotVideoTypeService = hotVideoTypeService; |
| | | } |
| | | |
| | | public UserBannerService getUserBannerService() { |
| | | return userBannerService; |
| | | } |
| | | |
| | | public void setUserBannerService(UserBannerService userBannerService) { |
| | | this.userBannerService = userBannerService; |
| | | } |
| | | |
| | | public HomeNoticeService getHomeNoticeService() { |
| | | return homeNoticeService; |
| | | } |
| | | |
| | | public void setHomeNoticeService(HomeNoticeService homeNoticeService) { |
| | | this.homeNoticeService = homeNoticeService; |
| | | } |
| | | |
| | | @RequestMapping(value = "/BanQuanServlet", method = RequestMethod.GET) |
| | | public void get(HttpServletRequest request, PrintWriter out) { |
| | |
| | | } |
| | | |
| | | String[] idss = ids.split(","); |
| | | List<VideoBanQuanVideo> list = new ArrayList<VideoBanQuanVideo>(); |
| | | List<VideoBanQuanVideo> list = new ArrayList<>(); |
| | | for (String sy : systems) |
| | | for (String st : idss) { |
| | | VideoBanQuanVideo video = new VideoBanQuanVideo(); |
| | |
| | | systems = system.split(","); |
| | | } |
| | | String[] idss = ids.split(","); |
| | | List<VideoBanQuan> list = new ArrayList<VideoBanQuan>(); |
| | | List<VideoBanQuan> list = new ArrayList<>(); |
| | | if (systems != null) |
| | | for (String sy : systems) |
| | | for (String st : idss) { |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads.length > 0)// 添加广告 |
| | | { |
| | | List<HomeAd> list = new ArrayList<HomeAd>(); |
| | | List<HomeAd> list = new ArrayList<>(); |
| | | for (String ad : ads) { |
| | | list.add(new HomeAd(ad)); |
| | | } |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<HomeType> list = new ArrayList<HomeType>(); |
| | | List<HomeType> list = new ArrayList<>(); |
| | | for (String ad : ads) { |
| | | list.add(new HomeType(ad)); |
| | | } |
| | |
| | | String[] pictures = req.getParameterValues("pictures"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperVideoType> list = new ArrayList<SuperVideoType>(); |
| | | List<SuperVideoType> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperVideoType vt = new SuperVideoType(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperHotType> list = new ArrayList<SuperHotType>(); |
| | | List<SuperHotType> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperHotType vt = new SuperHotType(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperHotSearch> list = new ArrayList<SuperHotSearch>(); |
| | | List<SuperHotSearch> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperHotSearch vt = new SuperHotSearch(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperRecommendAd> list = new ArrayList<SuperRecommendAd>(); |
| | | List<SuperRecommendAd> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperRecommendAd vt = new SuperRecommendAd(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperUserBanner> list = new ArrayList<SuperUserBanner>(); |
| | | List<SuperUserBanner> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperUserBanner vt = new SuperUserBanner(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |
| | |
| | | String[] ads = req.getParameterValues("homeadids"); |
| | | if (ads != null && ads.length > 0)// 添加广告 |
| | | { |
| | | List<SuperHomeNotice> list = new ArrayList<SuperHomeNotice>(); |
| | | List<SuperHomeNotice> list = new ArrayList<>(); |
| | | for (int i = 0; i < ads.length; i++) { |
| | | SuperHomeNotice vt = new SuperHomeNotice(); |
| | | vt.setCreatetime(System.currentTimeMillis() + ""); |