  select
	<#if !(pageTag.indexUrl??)>
	<#--判断是否有栏目对象，用于搜索不传栏目-->
	<#if column??>
		<#assign path=column.categoryPath/>
	<#else>
		<#assign path=""/>
	</#if>
  <#--总记录数、总页数-->
	(SELECT ${pageTag.total}) as total,
	<#--记录总数-->
	(SELECT ${pageTag.size}) as rcount,
	<#--当前页码-->
	(SELECT ${pageTag.pageNo}) as cur,
	<#--首页-->
  CONCAT("${path}", "/index.html") as `index`,
	<#--上一页-->
	<#if (pageTag.pageNo?eval-1) gt 1>
	CONCAT("${path}","/list-${pageTag.pageNo?eval-1}.html") as pre,
	<#else>
	CONCAT("${path}","/index.html") as pre,
	</#if>
	<#--下一页-->
	<#if pageTag.total==1>
		CONCAT("${path}", "/index.html") as `next`,
		CONCAT("${path}", "/index.html") as `last`
	<#else>
		<#if pageTag.pageNo?eval gte pageTag.total>
		CONCAT("${path}","/list-${pageTag.total}.html") as next,
		<#else>
		CONCAT("${path}","/list-${pageTag.pageNo?eval+1}.html") as next,
		</#if>
		<#--最后一页-->
		CONCAT("${path}","/list-${pageTag.total}.html") as last
		</#if>
<#else><#--判断是否是搜索页面-->
 "${pageTag.indexUrl}" as `index`,"${pageTag.lastUrl}" as `last`,"${pageTag.preUrl}" as `pre`,"${pageTag.nextUrl}" as `next`,'${pageTag.total}' as total,'${pageTag.size}' as rcount,'${pageTag.pageNo}' as cur
</#if>