|
|
@@ -78,7 +78,8 @@ public class AuctionRecordService {
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
- if (auctionRecordDTO.getType().equals(AuctionRecordType.DEPOSIT) || auctionRecordDTO.isPurchased()) {
|
|
|
+ if (auctionRecordDTO.getType().equals(AuctionRecordType.DEPOSIT) || auctionRecordDTO.getType()
|
|
|
+ .equals(AuctionRecordType.BIDDER) || auctionRecordDTO.isPurchased()) {
|
|
|
AuctionOrder auctionOrder = auctionOrderRepo.findFirstByAuctionRecordIdOrderByCreatedAt(record.getId());
|
|
|
if (auctionOrder != null) {
|
|
|
auctionRecordDTO.setOrderId(auctionOrder.getId());
|
|
|
@@ -181,7 +182,7 @@ public class AuctionRecordService {
|
|
|
.auctionPic(null)
|
|
|
.bidderPrice(amount)
|
|
|
.purchased(false)
|
|
|
- .type(AuctionRecordType.DEPOSIT)
|
|
|
+ .type(AuctionRecordType.BIDDER)
|
|
|
.payDeposit(false)
|
|
|
.auctionType(auction.getAuctionType())
|
|
|
.build());
|
|
|
@@ -203,7 +204,7 @@ public class AuctionRecordService {
|
|
|
save.setId(null);
|
|
|
save.setUser(SecurityUtils.getAuthenticatedUser().getNickname());
|
|
|
save.setBidderPrice(amount);
|
|
|
- save.setType(AuctionRecordType.DEPOSIT);
|
|
|
+ save.setType(AuctionRecordType.BIDDER);
|
|
|
save = auctionRecordRepo.save(save);
|
|
|
|
|
|
if (record.isPayDeposit()) {
|