Authored by wangnan

fix

... ... @@ -14,10 +14,11 @@
<result column="question_seq" property="questionSeq" jdbcType="INTEGER"/>
<result column="click_times" property="clickTimes" jdbcType="INTEGER"/>
<result column="answer" property="answer" jdbcType="LONGVARCHAR"/>
<result column="keywords" property="keywords" jdbcType="LONGVARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id, sort_id, question, pid, create_time, is_disable, effect_time, update_pid, update_time,
question_seq, click_times,answer
question_seq, click_times,answer,keywords
</sql>
<select id="count" resultType="java.lang.Integer" timeout="20000">
SELECT count(id) FROM robot_question
... ... @@ -41,12 +42,13 @@
insert into robot_question (id, sort_id, question,
pid, create_time, is_disable,
effect_time, update_pid, update_time,
question_seq, click_times, answer
question_seq, click_times, answer,keywords
)
values (#{id,jdbcType=INTEGER}, #{sortId,jdbcType=INTEGER}, #{question,jdbcType=VARCHAR},
#{pid,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{isDisable,jdbcType=INTEGER},
#{effectTime,jdbcType=INTEGER}, #{updatePid,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
#{questionSeq,jdbcType=INTEGER}, #{clickTimes,jdbcType=INTEGER}, #{answer,jdbcType=LONGVARCHAR}
#{questionSeq,jdbcType=INTEGER}, #{clickTimes,jdbcType=INTEGER}, #{answer,jdbcType=LONGVARCHAR},
#{keywords,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.RobotQuestion">
... ... @@ -88,6 +90,9 @@
<if test="answer != null">
answer,
</if>
<if test="keywords != null">
keywords,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
... ... @@ -126,6 +131,9 @@
<if test="answer != null">
#{answer,jdbcType=LONGVARCHAR},
</if>
<if test="keywords != null">
#{keywords,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.RobotQuestion">
... ... @@ -164,6 +172,9 @@
<if test="answer != null">
answer = #{answer,jdbcType=LONGVARCHAR},
</if>
<if test="keywords != null">
keywords = #{keywords,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
... ... @@ -179,7 +190,8 @@
update_time = #{updateTime,jdbcType=INTEGER},
question_seq = #{questionSeq,jdbcType=INTEGER},
click_times = #{clickTimes,jdbcType=INTEGER},
answer = #{answer,jdbcType=LONGVARCHAR}
answer = #{answer,jdbcType=LONGVARCHAR},
keywords = #{keywords,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...