ServerGroupDao extends BaseDao { public int updateServerGroup(ServerGroup serverGroup) throws SQLException { if (null == serverGroup || serverGroup.getId() == null) { return 0; } return this.getDasClient().update(serverGroup); }  Long insertServerGroup(ServerGroup serverGroup); ServerGroup getServerGroupById(Long id); List<ServerGroup> getAllServerGroups(); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int updateServerGroup(ServerGroup serverGroup); int deleteServerGroup(ServerGroup serverGroup); int deleteServerGroupAndServerAndServerConfigByServerGroupId(Long serverGroupId); List<Server> serversNoGroup(Integer appGroupId); Long getServerGroupTotalCount(Paging<ServerGroup> paging); List<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging);  }
@Test public void updateServerGroup() throws Exception { serverGroup.setId(1L); int id = serverGroupDao.updateServerGroup(serverGroup); System.out.println("updateServerGroup :-------> " + id); Assert.assertTrue(id > 0); }