SuggestConversation.xml
882 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yoho.search.dal.SuggestConversionMapper">
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.SuggestConversion">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="source" property="source" jdbcType="VARCHAR" />
<result column="dest" property="dest" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List">
id, source, dest
</sql>
<select id="selectTotalCount" resultType="java.lang.Integer" timeout="20000">
SELECT count(1) FROM suggest_conversation
</select>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List" />
from suggest_conversation limit #{offset},#{pageSize}
</select>
</mapper>