UserGroupDao extends BaseDao { public Long insertUserGroup(UserGroup userGroup) throws SQLException { if (null == userGroup) { return 0L; } this.getDasClient().insert(userGroup, Hints.hints().setIdBack()); return userGroup.getId(); }  Long insertUserGroup(UserGroup userGroup); Long insertUserGroup(Long user_id, Long group_id, Integer role, Integer opt_user); int deleteUserFromGroup(Long user_id, Long group_id); int updateUserPersimion(UserGroup userGroup); int updateUserPersimion(Long userId, Long groupId, Integer role, Integer opt_user); List<MemberView> getUserListByLikeUserName(String userName); List<UserGroup> getUserGroupByUserId(Long userId); List<UserGroup> getUserGroupByGroupId(Long groupId); List<UserGroup> getUserGroupByGroupIdAndUserId(Long groupId, Long userId); Long getMemberTotalCount(Paging<UserGroup> paging); List<MemberView> findMemberPageList(Paging<UserGroup> paging);  }
@Test public void insertUserGroup() throws Exception { Long id = userGroupDao.insertUserGroup(userProject); System.out.println("insertUserGroup " + id); Assert.assertTrue(id > 0); }
@Test public void insertUserGroupTest() throws Exception { Long id = userGroupDao.insertUserGroup(1L, 1L, 1, 2); System.out.println("insertUserGroup " + id); Assert.assertTrue(id > 0); }