bug
This commit is contained in:
parent
4328a0dd4b
commit
ec8a9e969c
@ -70,7 +70,7 @@ public class ActiveNewlywedsRecordsController extends BaseController {
|
|||||||
queryWrapper1.eq(ActiveNewlyweds::getStatus,0);
|
queryWrapper1.eq(ActiveNewlyweds::getStatus,0);
|
||||||
ActiveNewlyweds activeNewlyweds = activeNewlywedsService.getOne(queryWrapper1);
|
ActiveNewlyweds activeNewlyweds = activeNewlywedsService.getOne(queryWrapper1);
|
||||||
if (ObjectUtils.isEmpty(activeNewlyweds)){
|
if (ObjectUtils.isEmpty(activeNewlyweds)){
|
||||||
return getFailureResult("0");
|
return getSuccessResult("0");
|
||||||
}
|
}
|
||||||
//活动记录
|
//活动记录
|
||||||
LambdaQueryWrapper<ActiveNewlywedsRecords> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ActiveNewlywedsRecords> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
@ -92,13 +92,14 @@
|
|||||||
card_favorables.instruction,
|
card_favorables.instruction,
|
||||||
card_favorables.cardRecordId,
|
card_favorables.cardRecordId,
|
||||||
card_favorables.endTime,
|
card_favorables.endTime,
|
||||||
|
card_favorables.createTime,
|
||||||
card_favorables.useStatus,
|
card_favorables.useStatus,
|
||||||
card_favorables.exclusiveFunction
|
card_favorables.exclusiveFunction
|
||||||
from
|
from
|
||||||
(SELECT
|
(SELECT
|
||||||
'优惠券' AS couponType,
|
'优惠券' AS couponType,
|
||||||
cf.NAME couponName ,cf.id id,cf.discount_amount couponAmount,cf.card_detail couponContent,cf.instruction instruction,
|
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
|
cfr.id cardRecordId, cfr.end_time endTime, cf.exclusive_function exclusiveFunction,cfr.status useStatus,cfr.create_time createTime
|
||||||
FROM
|
FROM
|
||||||
card_favorable cf
|
card_favorable cf
|
||||||
LEFT JOIN card_favorable_record cfr ON cf.id = cfr.card_favorable_id
|
LEFT JOIN card_favorable_record cfr ON cf.id = cfr.card_favorable_id
|
||||||
@ -115,7 +116,7 @@
|
|||||||
SELECT
|
SELECT
|
||||||
'兑换券' AS couponType,
|
'兑换券' AS couponType,
|
||||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.card_detail couponContent,ce.use_instructions instruction,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
|
cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus,cer.create_time createTime
|
||||||
FROM
|
FROM
|
||||||
card_exchange_record cer
|
card_exchange_record cer
|
||||||
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
||||||
@ -132,7 +133,7 @@
|
|||||||
SELECT
|
SELECT
|
||||||
'洗车券' AS couponType,
|
'洗车券' AS couponType,
|
||||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.card_detail couponContent, ce.use_instructions instruction,
|
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
|
cer.id cardRecordId, cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus,cer.create_time createTime
|
||||||
FROM
|
FROM
|
||||||
card_exchange_record cer
|
card_exchange_record cer
|
||||||
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
||||||
@ -149,7 +150,7 @@
|
|||||||
SELECT
|
SELECT
|
||||||
'洗车卡' AS couponType,
|
'洗车卡' AS couponType,
|
||||||
ce.NAME couponName, ce.id id, ce.count couponAmount, ce.use_instructions couponContent,ce.use_instructions instruction,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
|
cer.out_time endTime, ce.qr_code_link exclusiveFunction,cer.status useStatus,cer.create_time createTime
|
||||||
FROM
|
FROM
|
||||||
card_exchange_record cer
|
card_exchange_record cer
|
||||||
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
LEFT JOIN card_exchange ce ON cer.card_exchange_id = ce.id
|
||||||
@ -168,6 +169,7 @@
|
|||||||
and card_favorables.couponType = #{cardFavorableDTOS.couponType}
|
and card_favorables.couponType = #{cardFavorableDTOS.couponType}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by card_favorables.createTime desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getCanUserCardFavorableList" resultType="com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableRecordVO">
|
<select id="getCanUserCardFavorableList" resultType="com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableRecordVO">
|
||||||
|
@ -33,4 +33,5 @@ public class CouponVO implements Serializable {
|
|||||||
//券结束时间
|
//券结束时间
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
|
private Date createTime;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user