package cn.iocoder.byzs.module.bjdx.dal.mysql.courseconfig;

import cn.iocoder.byzs.module.bjdx.controller.admin.courseconfig.vo.CourseConfigPageReqVO;
import cn.iocoder.byzs.framework.common.pojo.PageResult;
import cn.iocoder.byzs.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.byzs.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.byzs.module.bjdx.dal.dataobject.courseconfig.CourseConfigDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 课程配置 Mapper
 *
 * @author 博雅智算源码
 */
@Mapper
public interface CourseConfigMapper extends BaseMapperX<CourseConfigDO> {

//    default PageResult<CourseConfigDO> selectPage(CourseConfigPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<CourseConfigDO>()
//                .eqIfPresent(CourseConfigDO::getCcCourseId, reqVO.getCcCourseId())
//                .eqIfPresent(CourseConfigDO::getCcTime, reqVO.getCcTime())
//                .eqIfPresent(CourseConfigDO::getCcQuestId, reqVO.getCcQuestId())
//                .eqIfPresent(CourseConfigDO::getCcAnswerJudge, reqVO.getCcAnswerJudge())
//                .orderByDesc(CourseConfigDO::getId));
//    }

    List<CourseConfigPageReqVO> selectCourseConfigPage(CourseConfigPageReqVO reqVO);

}