예제 #1
0
 /**
  * 根据角色ID获取菜单列表
  *
  * @param roleid
  * @return json
  */
 @POST
 @Path(value = "/queryMenu/id/{roleid}")
 public String queryMenuByRoleID(
     @PathParam(value = "roleid") String roleid, @Context HttpServletRequest request) {
   UserInfo userInfo = (UserInfo) request.getSession().getAttribute("userInfo");
   // CustomerContextHolder.setCustomerType("x6");
   List list = menuService.queryMenuByRoleID(userInfo, roleid);
   return gson.toJson(list);
 }
예제 #2
0
 @POST
 @Path(value = "/queryMenu/notGrant/id/{roleid}")
 public String queryMenuNotGrant(@PathParam(value = "roleid") String roleid) {
   // CustomerContextHolder.setCustomerType("x6");
   return gson.toJson(menuService.queryMenuNotGrant(roleid));
 }