UserGroupDao extends BaseDao { public Long getMemberTotalCount(Paging<UserGroup> paging) throws SQLException { String sql = "SELECT count(1) FROM user_group t1 LEFT JOIN login_users t2 ON t1.user_id = t2.id " + appenMenberWhere(paging); return this.getCount(sql); }  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 getMemberTotalCount() throws Exception { Long count = userGroupDao.getMemberTotalCount(paging); System.out.println("getMemberTotalCount :-------> " + count); Assert.assertTrue(count > 0); }