更新房间类型的接口

This commit is contained in:
freeebird
2018-11-05 19:13:40 +08:00
parent 6063878687
commit 4680160c2f
8 changed files with 101 additions and 42 deletions

View File

@@ -8,7 +8,7 @@
<result column="booking_price" jdbcType="DOUBLE" property="bookingPrice" />
<result column="booking_discount" jdbcType="DOUBLE" property="bookingDiscount" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="update_time" jdbcType="DATE" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
type_id, room_type, type_name, booking_price, booking_discount, create_time, update_time
@@ -90,12 +90,7 @@
<if test="bookingDiscount != null">
booking_discount = #{bookingDiscount,jdbcType=REAL},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
update_time = now(),
</set>
where type_id = #{typeId,jdbcType=INTEGER}
</update>