|
|
|
@ -198,9 +198,6 @@ public class RedServiceImpl implements RedService { |
|
|
|
} |
|
|
|
else if (type == 2) { |
|
|
|
// 消费:必须 delta < 0(或你设计为正数+方向,此处按负数扣款) |
|
|
|
if (delta.compareTo(BigDecimal.ZERO) > 0) { |
|
|
|
throw new BusinessException("消费金额应为负数(表示扣款)"); |
|
|
|
} |
|
|
|
if (now.isBefore(timeRuleConfig.getConsumeStartTime())) { |
|
|
|
String openTime = timeRuleConfig.getConsumeStartTime() |
|
|
|
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")); |
|
|
|
|