package com.fh.controller.system.menu;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import net.sf.json.JSONArray;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.fh.controller.base.BaseController;
import com.fh.entity.system.Menu;
import com.fh.service.system.fhlog.FHlogManager;
import com.fh.service.system.menu.MenuManager;
import com.fh.util.AppUtil;
import com.fh.util.Const;
import com.fh.util.Jurisdiction;
import com.fh.util.PageData;
import com.fh.util.RightsHelper;
/**
* 类名称:MenuController 菜单处理
* 创建时间:2015年10月27日
* @version
*/
@Controller
@RequestMapping(value="/menu")
public class MenuController extends BaseController {
String menuUrl = "menu.do"; //菜单地址(权限用)
@Resource(name="menuService")
private MenuManager menuService;
@Resource(name="fhlogService")
private FHlogManager FHLOG;
/**
* 显示菜单列表
* @param model
* @return
*/
@RequestMapping
public ModelAndView list()throws Exception{
ModelAndView mv = this.getModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
try{
String MENU_ID = (null == pd.get("MENU_ID") || "".equals(pd.get("MENU_ID").toString()))?"0":pd.get("MENU_ID").toString();
List