@RequestMapping(value = "/updateSystemUser.decorator", method = RequestMethod.POST) @ResponseBody public Message updateSystemUser( @RequestParam Map<String, String> params, /* @ModelAttribute("sessionUser") */ SysUser user) throws CustomException { logger.debug("进入系统用户关联方法..."); if (logger.isDebugEnabled()) { for (Entry<String, String> e : params.entrySet()) { logger.debug("{}={}", e.getKey(), e.getValue()); } } return service.updateSystemUser4jdbc(params); }
@RequestMapping( value = "/relUser", method = {RequestMethod.GET, RequestMethod.POST}) public ModelAndView relUser( @RequestParam Map<String, String> params, ModelAndView mav, HttpServletRequest request) throws UnsupportedEncodingException { logger.debug("进入系统用户关联方法..."); if (logger.isDebugEnabled()) { for (Entry<String, String> e : params.entrySet()) { logger.debug("{}={}", e.getKey(), e.getValue()); } } List<TreeNodesSupport> userGroupTree = service.loadUserGroupTree4jdbc(params); mav.addObject("userGroupTree", new JsonMapper().toJson(userGroupTree)); mav.addObject("params", params); String viewName = request.getRequestURI().substring(request.getContextPath().length()); mav.setViewName(viewName); return mav; }