package cn.iocoder.yudao.module.llm.dal.mysql.modelassesstaskmanual;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;

import cn.iocoder.yudao.module.llm.controller.admin.modelassesstaskmanual.vo.ModelAssessDimensionPageReqVO;
import cn.iocoder.yudao.module.llm.dal.dataobject.modelassesstaskmanual.ModelAssessDimensionDO;
import org.apache.ibatis.annotations.Mapper;


/**
 * 评估维度定义 Mapper
 *
 * @author 华大大模型
 */
@Mapper
public interface ModelAssessDimensionMapper extends BaseMapperX<ModelAssessDimensionDO> {

    default PageResult<ModelAssessDimensionDO> selectPage(ModelAssessDimensionPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ModelAssessDimensionDO>()
                .eqIfPresent(ModelAssessDimensionDO::getDimension, reqVO.getDimension())
                .betweenIfPresent(ModelAssessDimensionDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(ModelAssessDimensionDO::getId));
    }

}