Authored by hugufei

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

... ... @@ -14,12 +14,19 @@
</resultMap>
<sql id="Base_Column_List">
id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, update_time
id, config_type, config_page,`size`, size_limit, `interval`, interval_limit, description, insert_order, update_time
</sql>
<insert id="insert" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
insert ignore into cs_recall_config_common (id,config_type, config_page, `size`, size_limit, `interval`, interval_limit, description)
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})
insert ignore into cs_recall_config_common (
id,config_type, config_page,
`size`, size_limit, `interval`, interval_limit,
insert_order, description)
values (
#{id,jdbcType=INTEGER},#{configType,jdbcType=VARCHAR}, #{configPage,jdbcType=INTEGER},
#{size,jdbcType=INTEGER},#{sizeLimit,jdbcType=VARCHAR},
#{interval,jdbcType=INTEGER}, #{intervalLimit,jdbcType=VARCHAR},
#{insertOrder,jdbcType=INTEGER},#{description,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.CsRecallConfigCommon" timeout="20000">
... ... @@ -43,6 +50,9 @@
<if test="intervalLimit != null">
interval_limit = #{intervalLimit,jdbcType=VARCHAR},
</if>
<if test="insertOrder != null">
insert_order = #{insertOrder,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
... ... @@ -68,7 +78,9 @@
</select>
<select id="selectPageLists" resultMap="BaseResultMap" timeout="20000">
select <include refid="Base_Column_List" /> from cs_recall_config_common limit #{start}, #{limit}
select
<include refid="Base_Column_List"/>
from cs_recall_config_common limit #{start}, #{limit}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -31,6 +31,9 @@
"description": {
"type": "keyword"
},
"insertOrder": {
"type": "integer"
},
"updateTime": {
"type": "date"
}
... ...