@RequestMapping("/UserDetailInfo")
  public ModelAndView userDetailInfo(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/common/userDetailInfo");

    UserDto userDto = new UserDto();

    String userId = request.getParameter("userId");
    userDto = user.getUserInfo(userId);

    String userTypeName = null;
    CodeDto cdoeDto = code.getCodeInfo("SYSTEM", "USER_TYPE", userDto.getUserType());
    if (cdoeDto != null) userTypeName = cdoeDto.getCodeName();

    String birthDt = userDto.getBirthDt();
    if (!StringUtils.isEmpty(birthDt) && StringUtils.length(birthDt) == 8) {
      birthDt =
          StringUtils.substring(birthDt, 0, 2)
              + "/"
              + StringUtils.substring(birthDt, 2, 4)
              + "/"
              + StringUtils.substring(birthDt, 4);
    }
    userDto.setBirthDt(birthDt);
    userDto.setUserTypeName(userTypeName);

    mav.addObject("userPhoto", user.getProfilePhoto(userId));
    mav.addObject("userDto", userDto);

    return mav;
  }
  @RequestMapping(value = "/UserList", produces = "application/json")
  @ResponseBody
  public Map<String, Object> getUserList(HttpServletRequest request) throws Exception {

    HashMap<String, String> param = new HashMap<String, String>();
    Map<String, Object> model = new HashMap<String, Object>();
    List<UserDto> list = null;

    String userType = request.getParameter("userType");
    String roleId = request.getParameter("roleId");
    String useYn = request.getParameter("useYn");
    String firstName = request.getParameter("firstName");

    if (StringUtils.isEmpty(firstName)) {
      firstName = "%";
    } else {
      firstName = "%" + firstName + "%";
    }

    try {
      param.put("firstName", firstName);
      param.put("userType", StringUtils.isEmpty(userType) ? null : userType);
      param.put("roleId", StringUtils.isEmpty(roleId) ? null : roleId);
      param.put("useYn", StringUtils.isEmpty(useYn) ? null : useYn);
      list = user.getUserList(param);
    } catch (Exception e) {
      e.printStackTrace();
    }

    model.put("list", list);

    return model;
  }