package cn.iocoder.yudao.module.system.dal.mysql.extra;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.controller.admin.extra.vo.OrgServiceScopeFeePageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.extra.ElderlyExtraOrgServiceScopeFeeDO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ElderlyExtraOrgServiceScopeFeeMapper extends BaseMapperX<ElderlyExtraOrgServiceScopeFeeDO> {
    List<ElderlyExtraOrgServiceScopeFeeDO> selectPageWithJoin(Page<ElderlyExtraOrgServiceScopeFeeDO> page, @Param("reqVO") OrgServiceScopeFeePageReqVO reqVO);
    default PageResult<ElderlyExtraOrgServiceScopeFeeDO> selectPage(OrgServiceScopeFeePageReqVO reqVO) {
        Page<ElderlyExtraOrgServiceScopeFeeDO> page = new Page<>(reqVO.getPageNo(), reqVO.getPageSize());
        List<ElderlyExtraOrgServiceScopeFeeDO> list = selectPageWithJoin(page, reqVO);
        return new PageResult<>(list, page.getTotal());
    }
}
