package com.sooka.mybatis.mapper;

import java.util.List;
import java.util.Map;

import com.sooka.mybatis.model.TCmsAd;
import org.apache.ibatis.annotations.Param;

import com.sooka.mybatis.model.TCmsCategory;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface TCmsCategoryMapper extends Mapper<TCmsCategory> {

	List<Map> selectByTCmsContentDbtAll(Integer id);

	List<Map<String,Object>> findByCategoryIds(@Param("categoryIds") Long[] categoryIds);

	@Select("select * from t_cms_category where parent_id = #{pid} and site_id = #{siteId} order by sort_id")
	@ResultMap("BaseResultMap")
	List<TCmsCategory> findByCategoryByPidWithSort(@Param("pid") Long pid, @Param("siteId") Integer siteId);
}
