Skip to content

Commit 38b1420

Browse files
committed
refactor: 도장 수집 내역 컬럼 추가
1 parent 16185fc commit 38b1420

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/java/ddingdong/ddingdongBE/domain/qrstamp/controller/dto/request/CollectStampRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public class CollectStampRequest {
1212

1313
private String studentName;
1414

15+
private String department;
16+
1517
@Size(min = 8, max = 8, message = "학번은 8자리입니다.")
1618
private String studentNumber;
1719

@@ -20,6 +22,7 @@ public class CollectStampRequest {
2022
public StampHistory toStampHistoryEntity() {
2123
return StampHistory.builder()
2224
.studentName(this.studentName)
25+
.department(this.department)
2326
.studentNumber(this.studentNumber).build();
2427
}
2528
}

src/main/java/ddingdong/ddingdongBE/domain/qrstamp/entity/StampHistory.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,20 @@ public class StampHistory extends BaseEntity {
4242

4343
private LocalDateTime completedAt;
4444

45+
private String department;
46+
47+
private String certificationImageUrl;
48+
4549
@Builder
46-
private StampHistory(Long id, String studentName, String studentNumber, LocalDateTime completedAt) {
50+
51+
private StampHistory(Long id, String studentName, String department, String studentNumber,
52+
LocalDateTime completedAt, String certificationImageUrl) {
4753
this.id = id;
4854
this.studentName = studentName;
55+
this.department = department;
4956
this.studentNumber = studentNumber;
5057
this.completedAt = completedAt;
58+
this.certificationImageUrl = certificationImageUrl;
5159
}
5260

5361
public void collectStamp(ClubStamp clubStamp, LocalDateTime collectedAt) {

0 commit comments

Comments
 (0)