package cn.tsy.data.idsse.dsds.mapper.dict;

import org.apache.ibatis.annotations.Param;

import cn.hme.framework.jdbc.annotation.HmeMapper;
import cn.hme.framework.jdbc.constant.SqlProviderConstant;
import cn.hme.framework.jdbc.mapper.IHmeMapper;
import cn.hme.framework.jdbc.provider.page.Pageable;
import cn.tsy.data.idsse.dsds.model.dict.DictData;
import cn.tsy.idsse.dsds.control.search.SearchParam;

@HmeMapper
public interface DictDataMapper extends IHmeMapper<DictData> {

	public Pageable dataWithPage(
			@Param(SqlProviderConstant.SQL_PAGE_GROUP) Integer group, 
			@Param(SqlProviderConstant.SQL_PAGE_START) Integer start, 
			@Param(SqlProviderConstant.SQL_PAGE_LIMIT) Integer limit, 
			@Param(SqlProviderConstant.SQL_PAGE_QUERY) String query, 
			@Param(SqlProviderConstant.SQL_PAGE_ORDER) String order, 
			@Param(SqlProviderConstant.SQL_PAGE_TYPE) String type
	);
	
	public Pageable searchWithPage(
			@Param(SqlProviderConstant.SQL_PAGE_GROUP) Integer group, 
			@Param(SqlProviderConstant.SQL_PAGE_START) Integer start, 
			@Param(SqlProviderConstant.SQL_PAGE_LIMIT) Integer limit, 
			@Param(SqlProviderConstant.SQL_PAGE_QUERY) String query, 
			@Param(SqlProviderConstant.SQL_PAGE_ORDER) String order, 
			@Param(SqlProviderConstant.SQL_PAGE_TYPE) String type,
			@Param("param") SearchParam param
	);
}
