优惠券 返回名称
This commit is contained in:
@@ -9,6 +9,7 @@ import java.util.Date;
|
||||
public class TbUserCouponVo {
|
||||
private Integer id;
|
||||
private Integer shopId;
|
||||
private String shopName;
|
||||
private BigDecimal fullAmount;
|
||||
private BigDecimal discountAmount;
|
||||
private Integer couponId;
|
||||
|
||||
@@ -39,6 +39,7 @@ id, vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, nu
|
||||
<select id="queryByVipIdAndShopId" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbUserCouponVo">
|
||||
SELECT
|
||||
inRecord.shop_id as shopId,
|
||||
shop.shop_name as shopName,
|
||||
inRecord.id as id,
|
||||
inRecord.full_amount as fullAmount,
|
||||
inRecord.discount_amount as discountAmount,
|
||||
@@ -54,6 +55,7 @@ id, vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, nu
|
||||
inRecord.use_end_time as endTime
|
||||
FROM
|
||||
tb_activate_in_record inRecord
|
||||
LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id
|
||||
LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id
|
||||
<if test="shopId != null and shopId != ''">
|
||||
and pro.shop_id = #{shopId}
|
||||
@@ -75,6 +77,7 @@ id, vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, nu
|
||||
<select id="queryByVipIdAndShopIdExpire" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbUserCouponVo">
|
||||
SELECT
|
||||
inRecord.shop_id as shopId,
|
||||
shop.shop_Name as shopName,
|
||||
CASE
|
||||
WHEN inRecord.type = 1 THEN inRecord.NAME
|
||||
WHEN inRecord.type = 2 THEN pro.NAME
|
||||
@@ -84,6 +87,7 @@ id, vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, nu
|
||||
inRecord.use_end_time as endTime
|
||||
FROM
|
||||
tb_activate_in_record inRecord
|
||||
LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id
|
||||
LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id
|
||||
<if test="shopId != null and shopId != ''">
|
||||
and pro.shop_id = #{shopId}
|
||||
|
||||
Reference in New Issue
Block a user