过滤商品券

This commit is contained in:
齐天大圣 2024-01-16 13:24:22 +08:00
parent c971b639eb
commit 4637b6a64c

View File

@ -74,7 +74,8 @@
WHERE WHERE
cfr.mt_user_id = #{cardFavorableDTOS.id} cfr.mt_user_id = #{cardFavorableDTOS.id}
and cfr.status = #{cardFavorableDTOS.useStatus} and cfr.status = #{cardFavorableDTOS.useStatus}
and cfr.store_id = #{cardFavorableDTOS.storeId} UNION ALL and cfr.store_id = #{cardFavorableDTOS.storeId}
and cf.type != 1 UNION ALL
SELECT SELECT
'兑换券' AS couponType, '兑换券' AS couponType,
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,cer.id cardRecordId, cer.out_time endTime ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,cer.id cardRecordId, cer.out_time endTime