|
|
<?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.CsSearchRankConfigMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsSearchRankConfig" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="skn" property="skn" jdbcType="INTEGER" />
|
|
|
<result column="rank" property="rank" jdbcType="INTEGER" />
|
|
|
<result column="sale_num" property="saleNum" jdbcType="INTEGER" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, skn, rank, sale_num, update_time
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from cs_search_rank_config
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from cs_search_rank_config
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.CsSearchRankConfig" >
|
|
|
insert into cs_search_rank_config (id, skn, rank,
|
|
|
sale_num, update_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{skn,jdbcType=INTEGER}, #{rank,jdbcType=INTEGER},
|
|
|
#{saleNum,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.CsSearchRankConfig" >
|
|
|
insert into cs_search_rank_config
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="skn != null" >
|
|
|
skn,
|
|
|
</if>
|
|
|
<if test="rank != null" >
|
|
|
rank,
|
|
|
</if>
|
|
|
<if test="saleNum != null" >
|
|
|
sale_num,
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
update_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="skn != null" >
|
|
|
#{skn,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="rank != null" >
|
|
|
#{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="saleNum != null" >
|
|
|
#{saleNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
#{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.CsSearchRankConfig" >
|
|
|
update cs_search_rank_config
|
|
|
<set >
|
|
|
<if test="skn != null" >
|
|
|
skn = #{skn,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="rank != null" >
|
|
|
rank = #{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="saleNum != null" >
|
|
|
sale_num = #{saleNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsSearchRankConfig" >
|
|
|
update cs_search_rank_config
|
|
|
set skn = #{skn,jdbcType=INTEGER},
|
|
|
rank = #{rank,jdbcType=INTEGER},
|
|
|
sale_num = #{saleNum,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectCount" resultType="int">
|
|
|
select count(0) from cs_search_rank_config
|
|
|
</select>
|
|
|
|
|
|
<select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from cs_search_rank_config limit #{start}, #{limit}
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|