/**
  * 微站点信息编辑页面跳转
  *
  * @return
  */
 @RequestMapping(params = "goUpdate")
 public ModelAndView goUpdate(WeixinCmsSiteEntity weixinCmsSite, HttpServletRequest req) {
   if (StringUtil.isNotEmpty(weixinCmsSite.getId())) {
     weixinCmsSite =
         weixinCmsSiteService.getEntity(WeixinCmsSiteEntity.class, weixinCmsSite.getId());
     req.setAttribute("weixinCmsSitePage", weixinCmsSite);
   }
   return new ModelAndView("weixin/cms/site/weixinCmsSite-update");
 }
 /**
  * 删除微站点信息
  *
  * @return
  */
 @RequestMapping(params = "doDel")
 @ResponseBody
 public AjaxJson doDel(WeixinCmsSiteEntity weixinCmsSite, HttpServletRequest request) {
   AjaxJson j = new AjaxJson();
   weixinCmsSite = systemService.getEntity(WeixinCmsSiteEntity.class, weixinCmsSite.getId());
   message = "微站点信息删除成功";
   try {
     weixinCmsSiteService.delete(weixinCmsSite);
     systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
   } catch (Exception e) {
     e.printStackTrace();
     message = "微站点信息删除失败";
     throw new BusinessException(e.getMessage());
   }
   j.setMsg(message);
   return j;
 }
 /**
  * 更新微站点信息
  *
  * @param ids
  * @return
  */
 @RequestMapping(params = "doUpdate")
 @ResponseBody
 public AjaxJson doUpdate(WeixinCmsSiteEntity weixinCmsSite, HttpServletRequest request) {
   AjaxJson j = new AjaxJson();
   message = "微站点信息更新成功";
   WeixinCmsSiteEntity t =
       weixinCmsSiteService.get(WeixinCmsSiteEntity.class, weixinCmsSite.getId());
   try {
     MyBeanUtils.copyBeanNotNull2Bean(weixinCmsSite, t);
     weixinCmsSiteService.saveOrUpdate(t);
     systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
   } catch (Exception e) {
     e.printStackTrace();
     message = "微站点信息更新失败";
     throw new BusinessException(e.getMessage());
   }
   j.setMsg(message);
   return j;
 }