礼品卡兑换记录

This commit is contained in:
齐天大圣 2023-12-08 16:21:35 +08:00
parent 2b1888b719
commit 785c2eb517

View File

@ -4,7 +4,28 @@
<select id="selectCardRecord"
resultType="com.fuint.business.marketingActivity.cardValue.dto.CardValueRecordDTO">
SELECT
'储值卡' AS recordName,
mt_user_id mtUserId,
recharge_balance rechargeBalance,
gift_balance obtain,
create_time createTime,
chain_store_id chainStoreId,
store_id storeId
FROM
card_value_record
<where>
<if test="cardValueRecord.mtUserId != null">
and combined_result.mtUserId = #{cardValueRecord.mtUserId}
</if>
<if test="cardValueRecord.storeId != null">
and combined_result.storeId = #{cardValueRecord.storeId}
</if>
<if test="cardValueRecord.recordName != null">
and combined_result.recordName = #{cardValueRecord.recordName}
</if>
</where>
ORDER BY createTime
</select>