礼品卡兑换记录
This commit is contained in:
parent
2b1888b719
commit
785c2eb517
@ -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>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user