|
|
@@ -9,10 +9,11 @@
|
|
|
<result property="voucherName" column="voucher_name"/>
|
|
|
<result property="voucherPrice" column="voucher_price"/>
|
|
|
<result property="voucherType" column="voucher_type"/>
|
|
|
+ <result property="instantDiscount" column="instant_discount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBeilvVoucherVo">
|
|
|
- select id, voucher_name, voucher_price, voucher_type
|
|
|
+ select id, voucher_name, voucher_price, voucher_type,instant_discount
|
|
|
from beilv_voucher
|
|
|
</sql>
|
|
|
|
|
|
@@ -38,11 +39,13 @@
|
|
|
<if test="voucherName != null">voucher_name,</if>
|
|
|
<if test="voucherPrice != null">voucher_price,</if>
|
|
|
<if test="voucherType != null">voucher_type,</if>
|
|
|
+ <if test="instantDiscount != null">instant_discount,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="voucherName != null">#{voucherName},</if>
|
|
|
<if test="voucherPrice != null">#{voucherPrice},</if>
|
|
|
<if test="voucherType != null">#{voucherType},</if>
|
|
|
+ <if test="instantDiscount != null">#{instantDiscount},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -52,6 +55,7 @@
|
|
|
<if test="voucherName != null">voucher_name = #{voucherName},</if>
|
|
|
<if test="voucherPrice != null">voucher_price = #{voucherPrice},</if>
|
|
|
<if test="voucherType != null">voucher_type = #{voucherType},</if>
|
|
|
+ <if test="instantDiscount != null">instant_discount = #{instantDiscount},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|