Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public record ShopResponseV2(
@Schema(example = "110-439-1234567", description = "계좌번호", requiredMode = NOT_REQUIRED)
String accountNumber,

@Schema(example = "홍길동", description = "예금주", requiredMode = NOT_REQUIRED, nullable = true)
String accountHolder,

@Schema(description = "상점 영업 시작 시간", example = "11:30")
@JsonFormat(pattern = "HH:mm")
LocalTime openTime,
Expand Down Expand Up @@ -137,6 +140,7 @@ public static ShopResponseV2 from(Shop shop, LocalDate now) {
shop.getEventArticles().stream().anyMatch(events -> events.isEventDuration(now)),
shop.getBank(),
shop.getAccountNumber(),
shop.getAccountHolder(),
openTime,
closeTime
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ public class Shop extends BaseEntity {
@Column(name = "account_number", length = 20)
private String accountNumber;

@Size(max = 50)
@Column(name = "account_holder", length = 50)
private String accountHolder;

@Column(name = "introduction", columnDefinition = "text")
private String introduction;

Expand All @@ -187,6 +191,7 @@ private Shop(
Integer hit,
String bank,
String accountNumber,
String accountHolder,
ShopCategory shopMainCategory,
ShopOperation shopOperation
) {
Expand All @@ -207,6 +212,7 @@ private Shop(
this.hit = hit;
this.bank = bank;
this.accountNumber = accountNumber;
this.accountHolder = accountHolder;
this.shopMainCategory = shopMainCategory;
this.shopOperation = shopOperation;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE `shops`
ADD COLUMN `account_holder` VARCHAR(50) NULL COMMENT '예금주';
Loading