|
|
@@ -92,7 +92,7 @@ public class AuctionOrderService {
|
|
|
throw new BusinessException("拍卖已结束");
|
|
|
}
|
|
|
|
|
|
- String status = auctionActivityService.getStatus(auctionId);
|
|
|
+ String status = auctionActivityRepo.getStatus(auctionId);
|
|
|
switch (AuctionStatus.valueOf(status)) {
|
|
|
case NOTSTARTED:
|
|
|
throw new BusinessException("拍卖还未开始");
|
|
|
@@ -275,12 +275,12 @@ public class AuctionOrderService {
|
|
|
}
|
|
|
|
|
|
//此拍卖结束
|
|
|
- auctionActivityRepo.updateStatus(order.getAuctionId(), AuctionStatus.FINISH);
|
|
|
-
|
|
|
//修改买家和成交价
|
|
|
+ auction.setStatus(AuctionStatus.FINISH);
|
|
|
auction.setPurchaserId(order.getUserId());
|
|
|
auction.setPurchasePrice(order.getTotalPrice());
|
|
|
auctionActivityRepo.save(auction);
|
|
|
+ log.info("拍卖结束:{}", order.getAuctionId());
|
|
|
|
|
|
if (AuctionSource.TRANSFER.equals(order.getSource())) {
|
|
|
Asset asset = assetRepo.findById(auction.getAssetId()).orElseThrow(new BusinessException("资产不存在"));
|