Skip to content

Commit

Permalink
HOTFIX: 번호 저장 형식을 카카오 형식으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnnoh committed Jul 14, 2024
1 parent 9398e2a commit 0f94bee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Admin {
@Column(nullable = false)
private String adminPassword;

@Column(columnDefinition = "char(13)", nullable = false)
@Column(columnDefinition = "char(16)", nullable = false)
private String adminTel;

@Column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Pub {
@Column(nullable = false)
private String oneLiner;

@Column(columnDefinition = "char(13)", nullable = false)
@Column(columnDefinition = "char(16)", nullable = false)
private String pubTel;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class User {

private String password;

@Column(columnDefinition = "char(13)")
@Column(columnDefinition = "char(16)")
private String userTel;

private String refreshToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Waiting extends BaseTimeEntity {
@Column
private Status waitingStatus;

@Column
@Column(columnDefinition = "char(16)")
private String tel; // 비회원 식별을 위한 휴대폰 번호

@ManyToOne
Expand Down Expand Up @@ -68,7 +68,7 @@ public Waiting(Position waitingType, Integer headCount, Status waitingStatus, St
}

public static PubWaitingListResponse.WaitingInfo toWaitingInfo(Waiting waiting) {
String username = (waiting.getUser() == null) ? waiting.getTel().substring(9) : waiting.getUser().getUsername();
String username = (waiting.getUser() == null) ? waiting.getTel().substring(12) : waiting.getUser().getUsername();
return PubWaitingListResponse.WaitingInfo.of(username, waiting);
}

Expand Down

0 comments on commit 0f94bee

Please sign in to comment.