Skip to content

Commit

Permalink
Merge pull request #263 from SKY-HORSE-MAN-POWER/refactor/#261
Browse files Browse the repository at this point in the history
refactor: builder 수정(#261)
  • Loading branch information
chanchanwoong authored Jun 30, 2024
2 parents 23659a0 + 518e95e commit a984903
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ public void auctionClose(String auctionUuid) {

roundInfoRepository.save(RoundInfo.builder()
.auctionUuid(auctionUuid)
.round(currenctRoundInfo.getRound())
.roundStartTime(currenctRoundInfo.getRoundStartTime())
.roundEndTime(currenctRoundInfo.getRoundEndTime())
.incrementUnit(currenctRoundInfo.getIncrementUnit())
.price(currenctRoundInfo.getPrice())
.isActive(true)
.numberOfParticipants(currenctRoundInfo.getNumberOfParticipants())
.leftNumberOfParticipants(currenctRoundInfo.getLeftNumberOfParticipants())
.createdAt(LocalDateTime.now())
.auctionEndTime(currenctRoundInfo.getAuctionEndTime())
.isLastRound(currenctRoundInfo.getIsLastRound())
.endStatus(true)
.build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public RoundInfo(String auctionUuid, Integer round, LocalDateTime roundStartTime
this.createdAt = LocalDateTime.now();
this.auctionEndTime = auctionEndTime;
this.isLastRound = isLastRound;
this.endStatus = endStatus;
}

public static RoundInfo nextRoundUpdate(RoundInfo roundInfo) {
Expand Down

0 comments on commit a984903

Please sign in to comment.