|
@@ -103,7 +103,7 @@ public class AuctionOrderService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (user.getId().equals(auction.getSellerId())) {
|
|
if (user.getId().equals(auction.getSellerId())) {
|
|
|
- throw new BusinessException("不可自己出价自己的");
|
|
|
|
|
|
|
+ throw new BusinessException("不可自己出价自己");
|
|
|
}
|
|
}
|
|
|
if (AuctionPaymentType.DEPOSIT.equals(type)) {
|
|
if (AuctionPaymentType.DEPOSIT.equals(type)) {
|
|
|
return this.createDeposit(user, auction);
|
|
return this.createDeposit(user, auction);
|
|
@@ -257,6 +257,11 @@ public class AuctionOrderService {
|
|
|
//此拍卖结束
|
|
//此拍卖结束
|
|
|
auctionActivityService.changeStatus(order.getAuctionId(), AuctionStatus.FINISH);
|
|
auctionActivityService.changeStatus(order.getAuctionId(), AuctionStatus.FINISH);
|
|
|
|
|
|
|
|
|
|
+ //修改买家和成交价
|
|
|
|
|
+ auction.setPurchaserId(order.getUserId());
|
|
|
|
|
+ auction.setPurchasePrice(order.getTotalPrice());
|
|
|
|
|
+ auctionActivityRepo.save(auction);
|
|
|
|
|
+
|
|
|
if (AuctionSource.TRANSFER.equals(order.getSource())) {
|
|
if (AuctionSource.TRANSFER.equals(order.getSource())) {
|
|
|
Asset asset = assetRepo.findById(auction.getAssetId()).orElseThrow(new BusinessException("资产不存在"));
|
|
Asset asset = assetRepo.findById(auction.getAssetId()).orElseThrow(new BusinessException("资产不存在"));
|
|
|
if (asset.isPublicShow()) {
|
|
if (asset.isPublicShow()) {
|