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

        if(!StringUtil.isEmpty(chengYuanId)) {
            boolean isSuccess = true;
//            ObjectMapper mapper = new ObjectMapper();
//            Map result = new HashMap();
            try {
                ChengYuan oldCY = manager.findCYById(chengYuanId);

                ChengYuan newCY = getChengYuanModel(request, response);
                int flag = manager.updateChengYuan(newCY);
                if(flag > 0) {
                    logger.info("#########更新团队成员成功，新成员是："+newCY+"\n"+"旧成员是："+oldCY);
//                    result.put("success",true);
                }else{
                    logger.info("#########更新团队成员失败，新成员是："+newCY+"\n"+"旧成员是："+oldCY);
//                    result.put("success",false);
                    isSuccess = false;
                }

            } catch (Exception e) {
                isSuccess = false;
                logger.error("更新团队成员失败", e);
            } finally {
                if(isSuccess) {
                    request.getRequestDispatcher("/admin/chengyuan.do?method=viewAllCYs").forward(request,response);
                    return;
                }else{
                    request.getRequestDispatcher("/admin/error.jsp").forward(request,response);
                    return;
                }
            }
        }

    }