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

        ObjectMapper mapper = new ObjectMapper();
        Map result = new HashMap();
        boolean isSuccess = true;
        try {
            YiTouGS yiTouGS = getGSModel(request, response);
            manager.saveGS(yiTouGS);
            logger.info("#########添加公司成功，新公司是："+yiTouGS);
            result.put("success",true);
        } catch (Exception e) {
            isSuccess = false;
            result.put("success",false);
            logger.error("添加公司失败", e);
        }finally {
            if(isSuccess) {
                request.getRequestDispatcher("/admin/yitougs.do?method=viewAllGSs").forward(request,response);
                return;
            }else{
                request.setAttribute("errorMsg","添加公司失败");
                request.getRequestDispatcher("/admin/error.jsp").forward(request,response);
                return;
            }
        }
    }