package com.ruoyi.project.mapper.secondary;  // 移动到secondary包

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.project.domain.Wcmmetatablegovdocnews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface SecondaryWcmmetatablegovdocnewsMapper {
    @DataSource(value = DataSourceType.SLAVE)
    List<Wcmmetatablegovdocnews> selectRecentDataBySiteids(@Param("tenMinutesAgo") Date tenMinutesAgo,
                                                           @Param("siteids") List<String> siteids);
}