|
|
@@ -14,7 +14,7 @@
|
|
|
<result property="voucherPrice" column="voucher_price"/>
|
|
|
<result property="voucherType" column="voucher_type"/>
|
|
|
<result property="isValidityText" column="isValidityText"/>
|
|
|
- <result property="isValidityText" column="isValidityText"/>
|
|
|
+ <result property="instantDiscount" column="instant_discount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBeilvVoucherMemberVo">
|
|
|
@@ -29,7 +29,8 @@
|
|
|
v.voucher_type,
|
|
|
m.username,
|
|
|
vm.validity_time,
|
|
|
- vm.is_validity
|
|
|
+ vm.is_validity,
|
|
|
+ v.instant_discount
|
|
|
FROM beilv_voucher v
|
|
|
left join beilv_voucher_member vm on v.id = vm.voucher_id
|
|
|
left join sys_member m on vm.member_id = m.id
|
|
|
@@ -87,12 +88,13 @@
|
|
|
v.voucher_price,
|
|
|
v.voucher_type,
|
|
|
vm.is_validity,
|
|
|
- vm.validity_time
|
|
|
+ vm.validity_time,
|
|
|
+ v.instant_discount
|
|
|
FROM beilv_voucher v
|
|
|
left join beilv_voucher_member vm on v.id = vm.voucher_id
|
|
|
left join sys_member m on vm.member_id = m.id
|
|
|
where m.id = #{memberId}
|
|
|
- <if test="voucherType != null and voucherType != ''">and voucher_type = #{voucherType}</if>
|
|
|
+ <if test="voucherType != null and voucherType != ''">and v.voucher_type = #{voucherType}</if>
|
|
|
<if test="payPrice != null and payPrice != ''">and v.instant_discount >= #{payPrice}</if>
|
|
|
<if test="isValidity != null and isValidity != ''">and vm.is_validity = #{isValidity}</if>
|
|
|
</select>
|