package jj.tech.paolu.biz.webadmin.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper;
import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper;

import jj.tech.paolu.biz.webadmin.vo.MenuTree;
import jj.tech.paolu.biz.webadmin.vo.OrgTree;
@Mapper
public interface TreeMapper extends CommonDeleteMapper, CommonUpdateMapper{
	
	@SelectProvider(type=SqlProviderAdapter.class, method="select")
	List<MenuTree> selectManyMenu (SelectStatementProvider selectStatement);
	
	@SelectProvider(type = SqlProviderAdapter.class, method = "select")
	Long count(SelectStatementProvider selectStatement);
	
	@SelectProvider(type=SqlProviderAdapter.class, method="select")
	List<OrgTree> selectManyOrg (SelectStatementProvider selectStatement);
	
	

}
