wangqifan 4 лет назад
Родитель
Сommit
d43c376ad8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/main/java/com/izouma/nineth/service/AuctionRecordService.java

+ 3 - 0
src/main/java/com/izouma/nineth/service/AuctionRecordService.java

@@ -133,6 +133,9 @@ public class AuctionRecordService {
             if (auction.getPurchasePrice().compareTo(amount) >= 0) {
                 throw new BusinessException("出价低于当前竞拍价");
             }
+        } else if (auction.getStartingPrice().compareTo(amount) >= 0) {
+
+            throw new BusinessException("出价低于当前起拍价");
         }
         if (SecurityUtils.getAuthenticatedUser().getId().equals(auction.getPurchaserId())) {
             throw new BusinessException("请勿重复竞价");