AppGroupDao extends BaseDao { public Long insertAppGroup(AppGroup appGroup) throws SQLException { if (appGroup == null) { return 0L; } this.getDasClient().insert(appGroup, Hints.hints().setIdBack()); return appGroup.getId(); }  Long insertAppGroup(AppGroup appGroup); AppGroup getAppGroupById(Long id); int updateAppGroup(AppGroup appGroup); int deleteAppGroup(AppGroup appGroup); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int changeServerGroup(Long newServerGroupId, Set<Long> appGroupIds); List<AppGroup> getAppGroupsByServerGroupId(Long serverGroupId); Long getAppGroupTotalCount(Paging<AppGroup> paging); List<AppGroupView> findAppGroupPageList(Paging<AppGroup> paging);  }
@Test public void insertAppGroup() throws Exception { Long id = appGroupDao.insertAppGroup(appGroup); System.out.println("insertAppGroup :-------> " + id); Assert.assertTrue(id > 0); }