bug
This commit is contained in:
parent
937fcee22f
commit
56892e22bf
@ -20,6 +20,8 @@ public class CardValueRecordDTO extends CardValueRecord {
|
||||
private Integer cardFavorableId;
|
||||
//卡券领取记录id
|
||||
private Integer cardRecordId;
|
||||
private String appltType;
|
||||
private String paymentType;
|
||||
|
||||
// /**
|
||||
// * 会员id
|
||||
|
@ -67,15 +67,19 @@
|
||||
combined_result.storeId,
|
||||
combined_result.OilName,
|
||||
combined_result.type
|
||||
combined_result.paymentType
|
||||
FROM
|
||||
(SELECT '储值卡' AS recordName,mt_user_id mtUserId, recharge_balance rechargeBalance, gift_balance obtain, fringe_benefit oilName,royalty_type type,create_time createTime, chain_store_id chainStoreId, store_id storeId FROM card_value_record
|
||||
(SELECT '储值卡' AS recordName,payment_type paymentType,mt_user_id mtUserId, recharge_balance rechargeBalance, gift_balance obtain, fringe_benefit oilName,royalty_type type,create_time createTime, chain_store_id chainStoreId, store_id storeId FROM card_value_record
|
||||
UNION
|
||||
SELECT '升数卡' AS recordName,mt_user_id mtUserId, recharge_balance rechargeBalance, income_litres obtain,oil_name oilName,type, create_time createTime, chain_store_id chainStoreId, store_id storeId FROM card_fuel_record) AS combined_result
|
||||
SELECT '升数卡' AS recordName,payment_type paymentType,mt_user_id mtUserId, recharge_balance rechargeBalance, income_litres obtain,oil_name oilName,type, create_time createTime, chain_store_id chainStoreId, store_id storeId FROM card_fuel_record) AS combined_result
|
||||
|
||||
<where>
|
||||
<if test="cardValueRecord.mtUserId != null">
|
||||
and combined_result.mtUserId = #{cardValueRecord.mtUserId}
|
||||
</if>
|
||||
<if test="cardValueRecord.appltType != null">
|
||||
and combined_result.payment_type = #{cardValueRecord.appltType}
|
||||
</if>
|
||||
<if test="cardValueRecord.storeId != null">
|
||||
and combined_result.storeId = #{cardValueRecord.storeId}
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user