|
|
@@ -143,6 +143,7 @@ public class CardConsumeValidationContext {
|
|
|
context.cardLimitedVo = initXfCardLimited(context.cardNo, context.consumeDate, context.lastMeal);
|
|
|
}
|
|
|
LocalDateTime lastPayLimitLocalDt = CardDateUtils.toLocalDateTime(context.cardLimitedVo.getLastPay());
|
|
|
+ log.info("limit-last-pay:{},consumeDate:{}", lastPayLimitLocalDt.toLocalDate(), context.lastPayTime.toLocalDate());
|
|
|
if (!lastPayLimitLocalDt.toLocalDate().isEqual(context.lastPayTime.toLocalDate())) {
|
|
|
// 如果和消费时间不是同天,初始化为当天
|
|
|
initCardDayLimitedData(context.cardLimitedVo, Long.valueOf(context.lastMeal), context.consumeDate);
|
|
|
@@ -157,6 +158,8 @@ public class CardConsumeValidationContext {
|
|
|
context.cardLimitedVo.setLastPay(context.consumeDate);
|
|
|
}
|
|
|
}
|
|
|
+ log.info("初始化到当天的卡限制数据:{}", JsonUtils.toJsonString(context.cardLimitedVo));
|
|
|
+
|
|
|
return context;
|
|
|
}
|
|
|
|