BizAreaMapper.xml
1.58 KB
<?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.BizAreaMapper" >
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.BizArea" >
<result column="id" property="id" jdbcType="INTEGER" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="english_name" property="englishName" jdbcType="VARCHAR" />
<result column="name_tc" property="nameTc" jdbcType="VARCHAR" />
<result column="city_id" property="cityId" jdbcType="INTEGER" />
<result column="store_num" property="storeNum" jdbcType="INTEGER" />
<result column="is_top" property="isTop" jdbcType="INTEGER" />
<result column="top_time" property="topTime" jdbcType="INTEGER" />
<result column="is_recommend" property="isRecommend" jdbcType="INTEGER" />
<result column="sort" property="sort" jdbcType="INTEGER" />
<result column="recommend_time" property="recommendTime" jdbcType="INTEGER" />
<result column="des" property="des" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, name, english_name,
name_tc, city_id, store_num,
is_top, top_time, is_recommend,
sort, recommend_time, des
</sql>
<select id="selectPageList" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List" />
from bizarea limit #{offset},#{pageSize}
</select>
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
SELECT count(*) FROM bizarea
</select>
</mapper>