package com.chinacreator.video.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

@Component
//@CacheConfig(cacheNames = "flowlimit")
public interface FlowLimitDao {
	/**
	 * 根据产品ID获取aop配置表的信息
	 * @param productid
	 * @return
	 */
	//@Cacheable
	public List<HashMap> getSpAopConf(@Param("productids")List productids);
	
	/**
	 * 根据SPID查询配置
	 * @param spid
	 * @return
	 */
	 @Cacheable(value = "univideo_spaopconfbyspid",keyGenerator = "wiselyKeyGenerator")  
	public List<HashMap> qrySpAopConfBySpid(@Param("spid")String spid);
	 
	 /**
	  * 根据SPID集合获取产品标识
	  * @param spids
	  * @return
	  */
	 public List<HashMap> getSpAopConfBySpids(@Param("spids")List spids);
}
