diff --git a/src/main/resources/mappers/QuestionAnswerMapper.xml b/src/main/resources/mappers/QuestionAnswerMapper.xml index 4b95f50..2382ca5 100644 --- a/src/main/resources/mappers/QuestionAnswerMapper.xml +++ b/src/main/resources/mappers/QuestionAnswerMapper.xml @@ -5,7 +5,7 @@ <id column="id" jdbcType="VARCHAR" property="id" /> <result column="flow_id" jdbcType="VARCHAR" property="flowId" /> <result column="schoolId" jdbcType="VARCHAR" property="schoolid" /> - <result column="question_time" jdbcType="DATE" property="questionTime" /> + <result column="question_time" jdbcType="TIMESTAMP" property="questionTime" /> </resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.fund_investment.entity.QuestionAnswerWithBLOBs"> <result column="question_content" jdbcType="LONGVARCHAR" property="questionContent" /> @@ -128,7 +128,7 @@ question_time, question_content, reply_content ) values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{schoolid,jdbcType=VARCHAR}, - #{questionTime,jdbcType=DATE}, #{questionContent,jdbcType=LONGVARCHAR}, #{replyContent,jdbcType=LONGVARCHAR} + #{questionTime,jdbcType=TIMESTAMP}, #{questionContent,jdbcType=LONGVARCHAR}, #{replyContent,jdbcType=LONGVARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.QuestionAnswerWithBLOBs"> @@ -164,7 +164,7 @@ #{schoolid,jdbcType=VARCHAR}, </if> <if test="questionTime != null"> - #{questionTime,jdbcType=DATE}, + #{questionTime,jdbcType=TIMESTAMP}, </if> <if test="questionContent != null"> #{questionContent,jdbcType=LONGVARCHAR}, @@ -193,7 +193,7 @@ schoolId = #{record.schoolid,jdbcType=VARCHAR}, </if> <if test="record.questionTime != null"> - question_time = #{record.questionTime,jdbcType=DATE}, + question_time = #{record.questionTime,jdbcType=TIMESTAMP}, </if> <if test="record.questionContent != null"> question_content = #{record.questionContent,jdbcType=LONGVARCHAR}, @@ -211,7 +211,7 @@ set id = #{record.id,jdbcType=VARCHAR}, flow_id = #{record.flowId,jdbcType=VARCHAR}, schoolId = #{record.schoolid,jdbcType=VARCHAR}, - question_time = #{record.questionTime,jdbcType=DATE}, + question_time = #{record.questionTime,jdbcType=TIMESTAMP}, question_content = #{record.questionContent,jdbcType=LONGVARCHAR}, reply_content = #{record.replyContent,jdbcType=LONGVARCHAR} <if test="_parameter != null"> @@ -223,7 +223,7 @@ set id = #{record.id,jdbcType=VARCHAR}, flow_id = #{record.flowId,jdbcType=VARCHAR}, schoolId = #{record.schoolid,jdbcType=VARCHAR}, - question_time = #{record.questionTime,jdbcType=DATE} + question_time = #{record.questionTime,jdbcType=TIMESTAMP} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> @@ -238,7 +238,7 @@ schoolId = #{schoolid,jdbcType=VARCHAR}, </if> <if test="questionTime != null"> - question_time = #{questionTime,jdbcType=DATE}, + question_time = #{questionTime,jdbcType=TIMESTAMP}, </if> <if test="questionContent != null"> question_content = #{questionContent,jdbcType=LONGVARCHAR}, @@ -253,7 +253,7 @@ update question_answer set flow_id = #{flowId,jdbcType=VARCHAR}, schoolId = #{schoolid,jdbcType=VARCHAR}, - question_time = #{questionTime,jdbcType=DATE}, + question_time = #{questionTime,jdbcType=TIMESTAMP}, question_content = #{questionContent,jdbcType=LONGVARCHAR}, reply_content = #{replyContent,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR} @@ -262,7 +262,7 @@ update question_answer set flow_id = #{flowId,jdbcType=VARCHAR}, schoolId = #{schoolid,jdbcType=VARCHAR}, - question_time = #{questionTime,jdbcType=DATE} + question_time = #{questionTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=VARCHAR} </update> </mapper> \ No newline at end of file