-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat : CHAT-278-BE-API-태그-상세-통계 (#42)
* Feat : DTO 추가 상세 태그 통계를 위해 detailstatic dto 추가 * Feat : 컨트롤러 계층, 서비스 계층 추가 기존의 매서드 최대한 활용해서 구현, 파라매터로 카테고리까지 받게, 전체에대한 부분은 자바 로직을 통해 구현 * Chore : 주석 추가 코드 로직 설명 추가 (추후 리펙토링시 용이하기 위함) * Chore : 주석 추가 * Feat : 수정사항 반영 DTO 맵으로 바꾸고, 맵을 순회하며 데이터 매핑 + 전체 따로 처리 * Feat : 수정사항 반영 DTO 맵으로 바꾸고, 맵을 순회하며 데이터 매핑 + 전체 따로 처리 * Feat : 수정사항 반영 DTO 구조 바꾸고, 변경에따른 tagList 로직 수정 * Feat : 레포지토리 수정사항 반영 레포지토리 일반적으로 수정, 쿼리문이 복잡해서 맞는지 모르겠음.. * Revert "Feat : 수정사항 반영" This reverts commit 9153cf6. # Conflicts: # src/main/java/com/kuit/chatdiary/repository/diary/TagSearchRepository.java * Fix : 커밋 취소 * Fix : 커밋 취소 * Feat : 서비스 단 수정 statisticsMap을 채우는 부분에서, ".limit(10)" 추가를 통해 결과 10개로 제한 * Chore : 주석 추가 * Feat : 컨트롤러 도메인 커밋 반영 * Fix : 커밋 수정사항 반영
- Loading branch information
Showing
5 changed files
with
106 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/kuit/chatdiary/dto/diary/TagDetailStatisticsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.kuit.chatdiary.dto.diary; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class TagDetailStatisticsDTO { | ||
private Long count; | ||
private String[] tags; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/kuit/chatdiary/dto/diary/TagDetailStatisticsResponseDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.kuit.chatdiary.dto.diary; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.sql.Date; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
|
||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
public class TagDetailStatisticsResponseDTO { | ||
private Date startDate; | ||
private Date endDate; | ||
private Map<String, List<TagDetailStatisticsDTO>> statistics; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,5 @@ public List<Object[]> findTagStatisticsByMember(Long memberId, Date startDate, D | |
.getResultList(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters