Пример #1
0
 public void saveMenu(Menu menu) throws Exception {
   if (menu == null) {
     this.logger.warn("保存菜单失败:参数menu为空");
     throw new Exception("保存菜单失败:参数menu为空");
   }
   if (menu.getMenuId() != null && menu.getMenuId().intValue() > 0) {
     menuMapper.updateMenu(menu);
   } else {
     menuMapper.insertMenu(menu);
   }
 }