@Override
    public PageResult<MemberGroupDO> getGroupPage(MemberGroupPageReqVO pageReqVO) {
        return memberGroupMapper.selectPage(pageReqVO);
    }
@Test
    public void testGetGroupPage() {
        String name = randomString();
        int status = CommonStatusEnum.ENABLE.getStatus();

        // mock 数据
        MemberGroupDO dbGroup = randomPojo(MemberGroupDO.class, o -> { // 等会查询到
            o.setName(name);
            o.setStatus(status);
            o.setCreateTime(buildTime(2023, 2, 18));
        });
        groupMapper.insert(dbGroup);
        // 测试 name 不匹配
        groupMapper.insert(cloneIgnoreId(dbGroup, o -> o.setName("")));
        // 测试 status 不匹配
        groupMapper.insert(cloneIgnoreId(dbGroup, o -> o.setStatus(CommonStatusEnum.DISABLE.getStatus())));
        // 测试 createTime 不匹配
        groupMapper.insert(cloneIgnoreId(dbGroup, o -> o.setCreateTime(null)));
        // 准备参数
        MemberGroupPageReqVO reqVO = new MemberGroupPageReqVO();
        reqVO.setName(name);
        reqVO.setStatus(status);
        reqVO.setCreateTime(buildBetweenTime(2023, 2, 1, 2023, 2, 28));

        // 调用
        PageResult<MemberGroupDO> pageResult = groupService.getGroupPage(reqVO);
        // 断言
        assertEquals(1, pageResult.getTotal());
        assertEquals(1, pageResult.getList().size());
        assertPojoEquals(dbGroup, pageResult.getList().get(0));
    }