Authored by hugufei

fix bug

... ... @@ -14,7 +14,7 @@
</resultMap>
<sql id="Base_Column_List">
id, config_type, description, size, size_limit, interval, interval_limit, update_time
id, config_type, description, `size`, size_limit, `interval`, interval_limit, update_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
... ... @@ -31,7 +31,7 @@
<insert id="insert" parameterType="com.yoho.search.dal.model.CsRecommendConfig">
insert into cs_recommend_config (id, config_type, description,
size, size_limit, interval,
`size`, size_limit, `interval`,
interval_limit, update_time)
values (#{id,jdbcType=INTEGER}, #{configType,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{size,jdbcType=INTEGER}, #{sizeLimit,jdbcType=VARCHAR}, #{interval,jdbcType=INTEGER},
... ... @@ -51,13 +51,13 @@
description,
</if>
<if test="size != null">
size,
`size`,
</if>
<if test="sizeLimit != null">
size_limit,
</if>
<if test="interval != null">
interval,
`interval`,
</if>
<if test="intervalLimit != null">
interval_limit,
... ... @@ -104,13 +104,13 @@
description = #{description,jdbcType=VARCHAR},
</if>
<if test="size != null">
size = #{size,jdbcType=INTEGER},
`size` = #{size,jdbcType=INTEGER},
</if>
<if test="sizeLimit != null">
size_limit = #{sizeLimit,jdbcType=VARCHAR},
</if>
<if test="interval != null">
interval = #{interval,jdbcType=INTEGER},
`interval` = #{interval,jdbcType=INTEGER},
</if>
<if test="intervalLimit != null">
interval_limit = #{intervalLimit,jdbcType=VARCHAR},
... ... @@ -126,9 +126,9 @@
update cs_recommend_config
set config_type = #{configType,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
size = #{size,jdbcType=INTEGER},
`size` = #{size,jdbcType=INTEGER},
size_limit = #{sizeLimit,jdbcType=VARCHAR},
interval = #{interval,jdbcType=INTEGER},
`interval` = #{interval,jdbcType=INTEGER},
interval_limit = #{intervalLimit,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
... ...