private void doUpdateUser(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String userId = StringUtil.toString(request.getParameter("userId"));

        if(!StringUtil.isEmpty(userId)) {
            ObjectMapper mapper = new ObjectMapper();
            Map result = new HashMap();
            try {
                User oldUser = manager.findUserByColumnName(userId,"id");
                User newUser = fetchUserInfoFromRequest(request);
                newUser.setCreatedBy(StringUtil.toString(request.getSession().getAttribute("fgzb_user")));
                int flag = manager.update(newUser);
                if(flag > 0) {
                    logger.info("#########更新用户成功，新用户是："+newUser+"\n"+"旧用户是："+oldUser);
                    result.put("success",true);
                }else{
                    logger.info("#########更新用户失败，新用户是："+newUser+"\n"+"旧用户是："+oldUser);
                    result.put("success",false);
                }

            } catch (SQLException e) {
                result.put("success",false);
                logger.error("更新用户失败", e);
            }finally {
                String out =mapper.writeValueAsString(result);
                PrintWriter pw =  response.getWriter();
                pw.print(out);
            }
        }

    }