BigdataBrandVectorMapper.xml 938 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.BigdataBrandVectorMapper">
    <resultMap id="BaseResultMap" type="com.yoho.search.dal.model.BigdataBrandVector">
        <id column="brand_id" property="brandId" jdbcType="INTEGER"/>
        <result column="vector" property="vector" jdbcType="VARCHAR"/>
        <result column="update_time" property="updateTime" jdbcType="INTEGER"/>
    </resultMap>

    <sql id="Base_Column_List">
        brand_id, vector, update_time
    </sql>

    <select id="selectCount" resultType="int">
        select count(0) from bigdata_brand_vector
    </select>

    <select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
        select <include refid="Base_Column_List" /> from bigdata_brand_vector limit #{start}, #{limit}
    </select>

</mapper>