优惠券 返回名称
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
<select id="queryByVipIdAndShopId" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbUserCouponVo">
|
<select id="queryByVipIdAndShopId" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbUserCouponVo">
|
||||||
SELECT
|
SELECT
|
||||||
|
shop.shop_name as shopName,
|
||||||
CASE
|
CASE
|
||||||
WHEN outRecord.type = 1 THEN inRecord.name
|
WHEN outRecord.type = 1 THEN inRecord.name
|
||||||
WHEN outRecord.type = 2 THEN pro.NAME
|
WHEN outRecord.type = 2 THEN pro.NAME
|
||||||
@@ -39,6 +40,7 @@
|
|||||||
outRecord.use_num-outRecord.ref_num as num
|
outRecord.use_num-outRecord.ref_num as num
|
||||||
FROM
|
FROM
|
||||||
tb_activate_out_record outRecord
|
tb_activate_out_record outRecord
|
||||||
|
INNER JOIN tb_shop_info shop on outRecord.shop_id = shop.id
|
||||||
INNER JOIN tb_activate_in_record inRecord
|
INNER JOIN tb_activate_in_record inRecord
|
||||||
on outRecord.give_id = inRecord.id
|
on outRecord.give_id = inRecord.id
|
||||||
<if test="shopId != null and shopId != ''">
|
<if test="shopId != null and shopId != ''">
|
||||||
|
|||||||
Reference in New Issue
Block a user