TestSelect3Controller.java 1.6 KB
package com.thinkgem.jeesite.modules.test.web;


import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.modules.test.entity.Test;

/**
* @ClassName: TestLodopController.java 
* @Description: 三级联动测试 
* @author xuyg
* @date 2015-11-18 上午10:41:05 
*
 */
@Controller
@RequestMapping(value = "${adminPath}/test/select3test")
public class TestSelect3Controller extends BaseController {
 
	
	@RequiresPermissions("test:select3test:view")
	@RequestMapping(value = {"list", ""})
	public String print(Test test, HttpServletRequest request, HttpServletResponse response, Model model) {
		return "modules/test/Select3/SelectArea";
	}
	
	@RequiresPermissions("test:select3test:view")
	@RequestMapping(value = "form")
	public String printform(Test test, Model model) {
		model.addAttribute("test", test);
		return "modules/test/Select3/lodopindex";
	}
	
	@RequiresPermissions("test:select3test:view")
	@RequestMapping(value = "sendajax")
	@ResponseBody
	public List<String> sendajax(HttpServletRequest request, Model model) {
		List<String> strlist = new ArrayList<String>();
		strlist.add("param1");
		strlist.add("param2");
		strlist.add("xuyaguang_20160305");
		return strlist;
	}
	
	
	
}