Blame view

src/com/fh/controller/sunvote/school/SchoolTreeController.java 961 Bytes
f8d83f1f   孙向锦   添加学校界面
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  package com.fh.controller.sunvote.school;
  
  import java.util.List;
  
  import javax.annotation.Resource;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.servlet.ModelAndView;
  
  import com.fh.controller.base.BaseController;
  import com.fh.service.sunvote.school.SchoolManager;
  import com.fh.util.PageData;
  
  @Controller
  @RequestMapping(value="/schooltree")
  public class SchoolTreeController extends BaseController {
  
  	
  	@Resource(name="schoolService")
  	private SchoolManager schoolService;
  	
  	@RequestMapping(value="/tree")
  	public ModelAndView save() throws Exception{
  		ModelAndView mv = this.getModelAndView();
  		PageData pd = new PageData();
  		List<PageData> list = schoolService.listAll(pd);
  		
  		// 学校
  		for(PageData schoolPageData : list){
  			// 年级
  			
  			// 班级
  			
  			//
  			
  		}
  		
  		mv.setViewName("sunvote/school/school_main");
  		return mv;
  	}
  	
  	
  }