PoralResidentIntegrationController.java 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.goafanti.portal.controller;
  2. import java.util.List;
  3. import javax.annotation.Resource;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.servlet.ModelAndView;
  7. import com.goafanti.common.controller.BaseController;
  8. import com.goafanti.residentIntegration.bo.ResidentIntegrationBo;
  9. import com.goafanti.residentIntegration.service.ResidentIntegrationService;
  10. @Controller
  11. public class PoralResidentIntegrationController extends BaseController{
  12. @Resource
  13. private ResidentIntegrationService residentIntegrationService;
  14. @RequestMapping(value="/portal/residentIntegration/index")
  15. public ModelAndView residentIntegrationIndex(ModelAndView mv){
  16. List<ResidentIntegrationBo> jmrhAchievementList = residentIntegrationService.selectJmrhAchievement();
  17. List<ResidentIntegrationBo> jmrhTechnologyList = residentIntegrationService.selectJmrTechnology();
  18. List<ResidentIntegrationBo> jmrhProjectList = residentIntegrationService.selectJmrProject();
  19. mv.addObject("jmrhAchievementList", jmrhAchievementList);
  20. mv.addObject("jmrhTechnologyList",jmrhTechnologyList);
  21. mv.addObject("jmrhProjectList",jmrhProjectList);
  22. mv.setViewName("/portal/residentIntegration/index");
  23. return mv;
  24. }
  25. }