Authored by gemingdan

update suggest_word_custom

@@ -6,9 +6,12 @@ @@ -6,9 +6,12 @@
6 <result column="keyword" property="keyword" jdbcType="VARCHAR" /> 6 <result column="keyword" property="keyword" jdbcType="VARCHAR" />
7 <result column="update_time" property="updateTime" jdbcType="INTEGER" /> 7 <result column="update_time" property="updateTime" jdbcType="INTEGER" />
8 <result column="status" property="status" jdbcType="INTEGER" /> 8 <result column="status" property="status" jdbcType="INTEGER" />
  9 + <result column="count" jdbcType="INTEGER" property="count" />
  10 + <result column="count_for_app" jdbcType="INTEGER" property="countForApp" />
  11 + <result column="count_for_blk" jdbcType="INTEGER" property="countForBlk" />
9 </resultMap> 12 </resultMap>
10 <sql id="Base_Column_List" > 13 <sql id="Base_Column_List" >
11 - id, keyword, update_time, status 14 + id, keyword, update_time, status, count, count_for_app, count_for_blk
12 </sql> 15 </sql>
13 <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > 16 <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14 select 17 select
@@ -32,9 +35,10 @@ @@ -32,9 +35,10 @@
32 </delete> 35 </delete>
33 <insert id="insert" parameterType="com.yoho.search.dal.model.SuggestWordCustom" > 36 <insert id="insert" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
34 insert into suggest_word_custom (id, keyword, update_time, 37 insert into suggest_word_custom (id, keyword, update_time,
35 - status) 38 + status, count, count_for_app, count_for_blk)
36 values (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER}, 39 values (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER},
37 - #{status,jdbcType=INTEGER}) 40 + #{status,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}, #{countForApp,jdbcType=INTEGER},
  41 + #{countForBlk,jdbcType=INTEGER})
38 </insert> 42 </insert>
39 <insert id="insertSelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" > 43 <insert id="insertSelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
40 insert into suggest_word_custom 44 insert into suggest_word_custom
@@ -51,6 +55,15 @@ @@ -51,6 +55,15 @@
51 <if test="status != null" > 55 <if test="status != null" >
52 status, 56 status,
53 </if> 57 </if>
  58 + <if test="count != null">
  59 + count,
  60 + </if>
  61 + <if test="countForApp != null">
  62 + count_for_app,
  63 + </if>
  64 + <if test="countForBlk != null">
  65 + count_for_blk,
  66 + </if>
54 </trim> 67 </trim>
55 <trim prefix="values (" suffix=")" suffixOverrides="," > 68 <trim prefix="values (" suffix=")" suffixOverrides="," >
56 <if test="id != null" > 69 <if test="id != null" >
@@ -65,6 +78,15 @@ @@ -65,6 +78,15 @@
65 <if test="status != null" > 78 <if test="status != null" >
66 #{status,jdbcType=INTEGER}, 79 #{status,jdbcType=INTEGER},
67 </if> 80 </if>
  81 + <if test="count != null">
  82 + #{count,jdbcType=INTEGER},
  83 + </if>
  84 + <if test="countForApp != null">
  85 + #{countForApp,jdbcType=INTEGER},
  86 + </if>
  87 + <if test="countForBlk != null">
  88 + #{countForBlk,jdbcType=INTEGER},
  89 + </if>
68 </trim> 90 </trim>
69 </insert> 91 </insert>
70 <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" > 92 <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.SuggestWordCustom" >
@@ -79,6 +101,15 @@ @@ -79,6 +101,15 @@
79 <if test="status != null" > 101 <if test="status != null" >
80 status = #{status,jdbcType=INTEGER}, 102 status = #{status,jdbcType=INTEGER},
81 </if> 103 </if>
  104 + <if test="count != null">
  105 + count = #{count,jdbcType=INTEGER},
  106 + </if>
  107 + <if test="countForApp != null">
  108 + count_for_app = #{countForApp,jdbcType=INTEGER},
  109 + </if>
  110 + <if test="countForBlk != null">
  111 + count_for_blk = #{countForBlk,jdbcType=INTEGER},
  112 + </if>
82 </set> 113 </set>
83 where id = #{id,jdbcType=INTEGER} 114 where id = #{id,jdbcType=INTEGER}
84 </update> 115 </update>
@@ -86,7 +117,10 @@ @@ -86,7 +117,10 @@
86 update suggest_word_custom 117 update suggest_word_custom
87 set keyword = #{keyword,jdbcType=VARCHAR}, 118 set keyword = #{keyword,jdbcType=VARCHAR},
88 update_time = #{updateTime,jdbcType=INTEGER}, 119 update_time = #{updateTime,jdbcType=INTEGER},
89 - status = #{status,jdbcType=INTEGER} 120 + status = #{status,jdbcType=INTEGER},
  121 + count = #{count,jdbcType=INTEGER},
  122 + count_for_app = #{countForApp,jdbcType=INTEGER},
  123 + count_for_blk = #{countForBlk,jdbcType=INTEGER}
90 where id = #{id,jdbcType=INTEGER} 124 where id = #{id,jdbcType=INTEGER}
91 </update> 125 </update>
92 <update id="updateBatch" parameterType="java.util.List" timeout="20000"> 126 <update id="updateBatch" parameterType="java.util.List" timeout="20000">