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

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.dal.dataobject.datarefluxconfig.DataRefluxConfigDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.llm.controller.admin.datarefluxconfig.vo.*;

/**
 * 数据回流配置 Mapper
 *
 * @author 华大大模型
 */
@Mapper
public interface DataRefluxConfigMapper extends BaseMapperX<DataRefluxConfigDO> {

    default PageResult<DataRefluxConfigDO> selectPage(DataRefluxConfigPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<DataRefluxConfigDO>()
                .eqIfPresent(DataRefluxConfigDO::getModelServiceId, reqVO.getModelServiceId())
                .betweenIfPresent(DataRefluxConfigDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(DataRefluxConfigDO::getId));
    }

}