|
|
@@ -260,11 +260,13 @@ public class AuctionOrderService {
|
|
|
assetService.transfer(asset, order.getTotalPrice(), user, TransferReason.AUCTION, order.getId());
|
|
|
}
|
|
|
|
|
|
- //该出价记录表为竞得
|
|
|
- AuctionRecord record = auctionRecordRepo.findById(order.getAuctionRecordId())
|
|
|
- .orElseThrow(new BusinessException("无出价记录"));
|
|
|
- record.setPurchased(true);
|
|
|
- auctionRecordRepo.save(record);
|
|
|
+ //改出价记录表为竞得(一口价无出价表)
|
|
|
+ auctionRecordRepo.findById(order.getAuctionRecordId())
|
|
|
+ .ifPresent(record -> {
|
|
|
+ record.setPurchased(true);
|
|
|
+ auctionRecordRepo.save(record);
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
//退保证金
|
|
|
List<AuctionOrder> orders = auctionOrderRepo.findAllByAuctionIdAndPaymentTypeAndStatus(order.getAuctionId(),
|
|
|
@@ -405,7 +407,7 @@ public class AuctionOrderService {
|
|
|
.getId(), AuctionPaymentType.PURCHASE_PRICE, AuctionOrderStatus.NOT_PAID);
|
|
|
auctionOrders.forEach(this::cancel);
|
|
|
|
|
|
- auctionActivityService.changeStatus(act.getAssetId(), AuctionStatus.PASS);
|
|
|
+ auctionActivityService.changeStatus(act.getId(), AuctionStatus.PASS);
|
|
|
log.info("拍卖定时任务流拍{}", act.getId());
|
|
|
|
|
|
//退其余保证金
|