bug
This commit is contained in:
parent
0e95e453e3
commit
0f7ba19407
@ -89,6 +89,7 @@
|
||||
card_favorables.id,
|
||||
card_favorables.couponAmount,
|
||||
card_favorables.couponContent,
|
||||
card_favorables.instruction,
|
||||
card_favorables.cardRecordId,
|
||||
card_favorables.endTime,
|
||||
card_favorables.useStatus,
|
||||
@ -96,7 +97,7 @@
|
||||
from
|
||||
(SELECT
|
||||
'优惠券' AS couponType,
|
||||
cf.NAME couponName ,cf.id id,cf.discount_amount couponAmount,cf.satisfied_amount couponContent,
|
||||
cf.NAME couponName ,cf.id id,cf.discount_amount couponAmount,cf.card_detail couponContent,cf.instruction instruction,
|
||||
cfr.id cardRecordId, cfr.end_time endTime, cf.exclusive_function exclusiveFunction,cfr.status useStatus
|
||||
FROM
|
||||
card_favorable cf
|
||||
@ -110,7 +111,7 @@
|
||||
and cf.type != 1 UNION ALL
|
||||
SELECT
|
||||
'兑换券' AS couponType,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,cer.id cardRecordId,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.card_detail couponContent,ce.use_instructions instruction,cer.id cardRecordId,
|
||||
cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus
|
||||
FROM
|
||||
card_exchange_record cer
|
||||
@ -122,7 +123,7 @@
|
||||
and cer.store_id = #{cardFavorableDTOS.storeId} UNION ALL
|
||||
SELECT
|
||||
'洗车券' AS couponType,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.card_detail couponContent, ce.use_instructions instruction,
|
||||
cer.id cardRecordId, cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus
|
||||
FROM
|
||||
card_exchange_record cer
|
||||
@ -134,7 +135,7 @@
|
||||
and cer.store_id = #{cardFavorableDTOS.storeId} UNION ALL
|
||||
SELECT
|
||||
'洗车卡' AS couponType,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,cer.id cardRecordId,
|
||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,ce.use_instructions instruction,cer.id cardRecordId,
|
||||
cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus
|
||||
FROM
|
||||
card_exchange_record cer
|
||||
|
@ -75,7 +75,7 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
||||
}else {
|
||||
cardFavorable.setCardDetail("满"+cardFavorableDTO.getSatisfiedAmount()+"打"+cardFavorableDTO.getSpecialDiscount()+"折");
|
||||
}
|
||||
cardFavorable.setInstruction("请到到店使用!");
|
||||
cardFavorable.setInstruction("消费可用!");
|
||||
return save(cardFavorable);
|
||||
}
|
||||
|
||||
@ -214,7 +214,7 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
||||
}else if (StringUtils.isNotEmpty(cardFavorableDTO.getType()) &&cardFavorableDTO.getType().equals("1")){
|
||||
cardFavorable.setCardDetail("满"+cardFavorableDTO.getSatisfiedAmount()+"打"+cardFavorableDTO.getSpecialDiscount()+"折");
|
||||
}
|
||||
cardFavorable.setInstruction("请到到店使用!");
|
||||
cardFavorable.setInstruction("消费可用!");
|
||||
return updateById(cardFavorable);
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@ public class CouponVO implements Serializable {
|
||||
private String couponName;
|
||||
//券内容
|
||||
private String couponContent;
|
||||
private String instruction;
|
||||
//使用状态 0:未使用 1:已使用 2:已失效
|
||||
private String useStatus;
|
||||
//券有效期
|
||||
|
Loading…
Reference in New Issue
Block a user