wangqifan 4 yıl önce
ebeveyn
işleme
d43c376ad8

+ 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("请勿重复竞价");