private void doSaveCY(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{

        ObjectMapper mapper = new ObjectMapper();
        Map result = new HashMap();
        boolean isSuccess = true;
        try {
            ChengYuan chengYuan = getChengYuanModel(request,response);
            manager.saveChengYuan(chengYuan);
            logger.info("#########添加团队成员成功，新成员是："+chengYuan);
            result.put("success",true);
        } catch (Exception e) {
            isSuccess = false;
            result.put("success",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;
            }
        }

    }