Skip to content

Commit 692b94d

Browse files
authored
Merge pull request #111 from KB-Hackerton/feature/49
공고별 체크리스트 pub_date 추가
2 parents 80cc425 + af59bfb commit 692b94d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/main/java/kb_hack/backend/domain/document/dto/ChecklistResponseDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ public class ChecklistResponseDto {
1818
private int checkedDocs;
1919
private LocalDate reqstStartDate;
2020
private LocalDate reqstEndDate;
21+
private LocalDate pubDate;
2122
private List<DocumentItemDto> checklist;
2223
}

src/main/java/kb_hack/backend/domain/document/dto/DocumentResponseDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class DocumentResponseDto {
2020
private String announceTitle; // 공고 제목
2121
private LocalDate reqstStartDate;
2222
private LocalDate reqstEndDate; // announce.reqst_end_date
23+
private LocalDate pubDate;
2324
private int totalDocs; // 총 서류 개수
2425
private int checkedDocs; // 체크한 서류 개수
2526
}

src/main/java/kb_hack/backend/domain/document/service/ChecklistService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public ChecklistResponseDto getChecklistByAnnounce(Long announceId) {
5252
.checkedDocs(first.getCheckedDocs()) // ✅ 추가
5353
.reqstStartDate(first.getReqstStartDate()) // ✅ 추가
5454
.reqstEndDate(first.getReqstEndDate()) // ✅ 추가
55+
.pubDate(first.getPubDate())
5556
.checklist(checklist)
5657
.build();
5758
}

src/main/resources/mapper/DocumentMapper.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
a.announce_title AS announceTitle,
6161
a.reqst_start_date AS reqstStartDate, -- ✅ 추가
6262
a.reqst_end_date AS reqstEndDate, -- ✅ 변경
63+
a.pub_date AS pubDate,
6364
(SELECT COUNT(*)
6465
FROM document d2
6566
WHERE d2.announce_id = d.announce_id) AS totalDocs,

0 commit comments

Comments
 (0)