package com.cf.imes.module.report.dal.mysql.dataset;

import com.cf.imes.framework.mybatis.core.mapper.BaseMapperX;
import com.cf.imes.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.cf.imes.framework.organ.core.aop.OrganIgnore;
import com.cf.imes.module.report.dal.dataobject.dataset.ReportDatasetDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 报表数据集 Mapper
 *
 * @author Gqr
 * @since 2024/7/8 11:55
 */
@Mapper
public interface ReportDatasetMapper extends BaseMapperX<ReportDatasetDO> {

    /**
     * 查询数据集列表
     * @param
     * @return
     */
    @OrganIgnore
    default List<ReportDatasetDO> selectNormalDatasetList(Set<Long> datasetIds) {
        return selectList(new LambdaQueryWrapperX<ReportDatasetDO>().in(ReportDatasetDO::getId, datasetIds));
    }
}
