|
@@ -138,9 +138,8 @@ public class CardConsumeValidationContext {
|
|
|
if (ObjectUtil.isEmpty(context.cardLimitedVo)) {
|
|
if (ObjectUtil.isEmpty(context.cardLimitedVo)) {
|
|
|
context.cardLimitedVo = initXfCardLimited(context.cardNo, context.consumeDate, context.lastMeal);
|
|
context.cardLimitedVo = initXfCardLimited(context.cardNo, context.consumeDate, context.lastMeal);
|
|
|
}
|
|
}
|
|
|
- log.info("缓存获取到的卡限制数据:{}", JSONUtil.toJsonStr(context.cardLimitedVo));
|
|
|
|
|
-
|
|
|
|
|
LocalDateTime lastPayLimitLocalDt = CardDateUtils.toLocalDateTime(context.cardLimitedVo.getLastPay());
|
|
LocalDateTime lastPayLimitLocalDt = CardDateUtils.toLocalDateTime(context.cardLimitedVo.getLastPay());
|
|
|
|
|
+ log.info("limit-last-pay:{},consumeDate:{}", context.cardLimitedVo.getLastPay(), context.lastPayTime.toLocalDate());
|
|
|
if (!lastPayLimitLocalDt.toLocalDate().isEqual(context.lastPayTime.toLocalDate())) {
|
|
if (!lastPayLimitLocalDt.toLocalDate().isEqual(context.lastPayTime.toLocalDate())) {
|
|
|
// 如果和消费时间不是同天,初始化为当天
|
|
// 如果和消费时间不是同天,初始化为当天
|
|
|
initCardDayLimitedData(context.cardLimitedVo, Long.valueOf(context.lastMeal), context.consumeDate);
|
|
initCardDayLimitedData(context.cardLimitedVo, Long.valueOf(context.lastMeal), context.consumeDate);
|