Authored by hugufei

CsRecallConfigCommon中添加insertOrder字段控制插入顺序

@@ -14,12 +14,19 @@ @@ -14,12 +14,19 @@
14 </resultMap> 14 </resultMap>
15 15
16 <sql id="Base_Column_List"> 16 <sql id="Base_Column_List">
17 - id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, update_time 17 + id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, insert_order, update_time
18 </sql> 18 </sql>
19 19
20 <insert id="insert" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000"> 20 <insert id="insert" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
21 - insert ignore into cs_recall_config_common (id,config_type, config_page, `size`, size_limit, `interval`, interval_limit, description)  
22 - values (#{id,jdbcType=INTEGER},#{configType,jdbcType=VARCHAR}, #{configPage,jdbcType=INTEGER}, #{size,jdbcType=INTEGER},#{sizeLimit,jdbcType=VARCHAR}, #{interval,jdbcType=INTEGER}, #{intervalLimit,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}) 21 + insert ignore into cs_recall_config_common (
  22 + id,config_type, config_page,
  23 + `size`, size_limit, `interval`, interval_limit,
  24 + insert_order, description)
  25 + values (
  26 + #{id,jdbcType=INTEGER},#{configType,jdbcType=VARCHAR}, #{configPage,jdbcType=INTEGER},
  27 + #{size,jdbcType=INTEGER},#{sizeLimit,jdbcType=VARCHAR},
  28 + #{interval,jdbcType=INTEGER}, #{intervalLimit,jdbcType=VARCHAR},
  29 + #{insertOrder,jdbcType=INTEGER},#{description,jdbcType=VARCHAR})
23 </insert> 30 </insert>
24 31
25 <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000"> 32 <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
@@ -43,6 +50,9 @@ @@ -43,6 +50,9 @@
43 <if test="intervalLimit != null"> 50 <if test="intervalLimit != null">
44 interval_limit = #{intervalLimit,jdbcType=VARCHAR}, 51 interval_limit = #{intervalLimit,jdbcType=VARCHAR},
45 </if> 52 </if>
  53 + <if test="insertOrder != null">
  54 + insert_order = #{insertOrder,jdbcType=VARCHAR},
  55 + </if>
46 <if test="description != null"> 56 <if test="description != null">
47 description = #{description,jdbcType=VARCHAR}, 57 description = #{description,jdbcType=VARCHAR},
48 </if> 58 </if>
@@ -68,7 +78,9 @@ @@ -68,7 +78,9 @@
68 </select> 78 </select>
69 79
70 <select id="selectPageLists" resultMap="BaseResultMap" timeout="20000"> 80 <select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
71 - select <include refid="Base_Column_List" /> from cs_recall_config_common limit #{start}, #{limit} 81 + select
  82 + <include refid="Base_Column_List"/>
  83 + from cs_recall_config_common limit #{start}, #{limit}
72 </select> 84 </select>
73 85
74 </mapper> 86 </mapper>
@@ -31,6 +31,9 @@ @@ -31,6 +31,9 @@
31 "description": { 31 "description": {
32 "type": "keyword" 32 "type": "keyword"
33 }, 33 },
  34 + "insertOrder": {
  35 + "type": "integer"
  36 + },
34 "updateTime": { 37 "updateTime": {
35 "type": "date" 38 "type": "date"
36 } 39 }