...
|
...
|
@@ -6,9 +6,12 @@ |
|
|
<result column="keyword" property="keyword" jdbcType="VARCHAR" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="status" property="status" jdbcType="INTEGER" />
|
|
|
<result column="count" jdbcType="INTEGER" property="count" />
|
|
|
<result column="count_for_app" jdbcType="INTEGER" property="countForApp" />
|
|
|
<result column="count_for_blk" jdbcType="INTEGER" property="countForBlk" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, keyword, update_time, status
|
|
|
id, keyword, update_time, status, count, count_for_app, count_for_blk
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -32,9 +35,10 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
|
|
|
insert into suggest_word_custom (id, keyword, update_time,
|
|
|
status)
|
|
|
status, count, count_for_app, count_for_blk)
|
|
|
values (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER},
|
|
|
#{status,jdbcType=INTEGER})
|
|
|
#{status,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}, #{countForApp,jdbcType=INTEGER},
|
|
|
#{countForBlk,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
|
|
|
insert into suggest_word_custom
|
...
|
...
|
@@ -51,6 +55,15 @@ |
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="count != null">
|
|
|
count,
|
|
|
</if>
|
|
|
<if test="countForApp != null">
|
|
|
count_for_app,
|
|
|
</if>
|
|
|
<if test="countForBlk != null">
|
|
|
count_for_blk,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
...
|
...
|
@@ -65,6 +78,15 @@ |
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="count != null">
|
|
|
#{count,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="countForApp != null">
|
|
|
#{countForApp,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="countForBlk != null">
|
|
|
#{countForBlk,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
|
...
|
...
|
@@ -79,6 +101,15 @@ |
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="count != null">
|
|
|
count = #{count,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="countForApp != null">
|
|
|
count_for_app = #{countForApp,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="countForBlk != null">
|
|
|
count_for_blk = #{countForBlk,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -86,7 +117,10 @@ |
|
|
update suggest_word_custom
|
|
|
set keyword = #{keyword,jdbcType=VARCHAR},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
status = #{status,jdbcType=INTEGER}
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
count = #{count,jdbcType=INTEGER},
|
|
|
count_for_app = #{countForApp,jdbcType=INTEGER},
|
|
|
count_for_blk = #{countForBlk,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateBatch" parameterType="java.util.List" timeout="20000">
|
...
|
...
|
|