package com.community.huiju.dao;

import com.community.huiju.model.ToBanner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ToBannerMapper {

//    ToBanner selectByCommunityId(@Param("bannerId") Integer bannerId, @Param("nowTime") String nowTime);

    ToBanner selectByCommunityId(@Param("bannerId") Integer bannerId);

    List<ToBanner> selectAllByNum(@Param("nowTime") String nowTime, @Param("num")Integer num, @Param("bannerPosition") Integer bannerPosition, @Param("communityId") Integer communityId);
}