/**
  * 扩展接口管理新增页面跳转
  *
  * @return
  */
 @RequestMapping(params = "goAdd")
 public ModelAndView goAdd(WeixinExpandconfigEntity weixinExpandconfig, HttpServletRequest req) {
   if (StringUtil.isNotEmpty(weixinExpandconfig.getId())) {
     weixinExpandconfig =
         weixinExpandconfigService.getEntity(
             WeixinExpandconfigEntity.class, weixinExpandconfig.getId());
     req.setAttribute("weixinExpandconfigPage", weixinExpandconfig);
   }
   return new ModelAndView("weixin/guanjia/base/expandconfig/weixinExpandconfig-add");
 }
 /**
  * 更新扩展接口管理
  *
  * @param ids
  * @return
  */
 @RequestMapping(params = "doUpdate")
 @ResponseBody
 public AjaxJson doUpdate(
     WeixinExpandconfigEntity weixinExpandconfig, HttpServletRequest request) {
   AjaxJson j = new AjaxJson();
   message = "扩展接口管理更新成功";
   WeixinExpandconfigEntity t =
       weixinExpandconfigService.get(WeixinExpandconfigEntity.class, weixinExpandconfig.getId());
   try {
     MyBeanUtils.copyBeanNotNull2Bean(weixinExpandconfig, t);
     weixinExpandconfigService.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;
 }
 /**
  * 添加扩展接口管理
  *
  * @param ids
  * @return
  */
 @RequestMapping(params = "doAdd")
 @ResponseBody
 public AjaxJson doAdd(WeixinExpandconfigEntity weixinExpandconfig, HttpServletRequest request) {
   AjaxJson j = new AjaxJson();
   message = "扩展接口管理添加成功";
   try {
     weixinExpandconfig.setAccountid(ResourceUtil.getWeiXinAccountId());
     weixinExpandconfigService.save(weixinExpandconfig);
     systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
   } catch (Exception e) {
     e.printStackTrace();
     message = "扩展接口管理添加失败";
     throw new BusinessException(e.getMessage());
   }
   j.setMsg(message);
   return j;
 }
 /**
  * 删除扩展接口管理
  *
  * @return
  */
 @RequestMapping(params = "doDel")
 @ResponseBody
 public AjaxJson doDel(WeixinExpandconfigEntity weixinExpandconfig, HttpServletRequest request) {
   AjaxJson j = new AjaxJson();
   weixinExpandconfig =
       systemService.getEntity(WeixinExpandconfigEntity.class, weixinExpandconfig.getId());
   message = "扩展接口管理删除成功";
   try {
     weixinExpandconfigService.delete(weixinExpandconfig);
     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;
 }