Commit 0decc446 by 郑勇

bug: [none] 加修改时间

parent 936261ab
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
#{maxUserCount, jdbcType=INTEGER}, #{maxUserCount, jdbcType=INTEGER},
#{fullUseTips, jdbcType=VARCHAR}, #{fullUseTips, jdbcType=VARCHAR},
#{createdUser, jdbcType=INTEGER}, #{createdUser, jdbcType=INTEGER},
#{createTime, jdbcType=TIMESTAMP}, now(),
#{updateTime, jdbcType=TIMESTAMP} now()
) )
</insert> </insert>
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
#{item.maxUserCount, jdbcType=INTEGER}, #{item.maxUserCount, jdbcType=INTEGER},
#{item.fullUseTips, jdbcType=VARCHAR}, #{item.fullUseTips, jdbcType=VARCHAR},
#{item.createdUser, jdbcType=INTEGER}, #{item.createdUser, jdbcType=INTEGER},
#{item.createTime, jdbcType=TIMESTAMP}, now(),
#{item.updateTime, jdbcType=TIMESTAMP} now()
) )
</foreach> </foreach>
</insert> </insert>
...@@ -111,9 +111,7 @@ ...@@ -111,9 +111,7 @@
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime}, create_time = #{createTime},
</if> </if>
<if test="updateTime != null"> update_time = now()
update_time = #{updateTime},
</if>
</set> </set>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -128,8 +126,7 @@ ...@@ -128,8 +126,7 @@
<if test="item.fullUseTips != null and item.fullUseTips != ''"> <if test="item.fullUseTips != null and item.fullUseTips != ''">
full_use_tips = #{item.fullUseTips}, full_use_tips = #{item.fullUseTips},
</if> </if>
update_time = now(), update_time = now()
</set> </set>
WHERE id = #{item.id} WHERE id = #{item.id}
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment