|
|
@@ -88,6 +88,10 @@ public class DomainOrderService {
|
|
|
if (singlePrice.multiply(BigDecimal.valueOf(year)).compareTo(price) != 0) {
|
|
|
throw new BusinessException("价格不符");
|
|
|
}
|
|
|
+ LocalDateTime startTime = LocalDateTime.of(2023, 2, 10, 15, 0, 0);
|
|
|
+ if (LocalDateTime.now().isBefore(startTime)) {
|
|
|
+ throw new BusinessException("时间不符");
|
|
|
+ }
|
|
|
// if (price.compareTo(BigDecimal.valueOf(40L)) != 0) {
|
|
|
// throw new BusinessException("订单价格与配置不符,请重新下单.");
|
|
|
// }
|