Skip to content

Commit

Permalink
[FIX] 업무 카드 조회 시 id 값들도 내려주도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Aug 26, 2023
1 parent 4b83fd5 commit d1d8489
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
@AllArgsConstructor(staticName = "of")
public class CardGetResponseDto {
private Long cardId;
private String category;
private String task;
private String subTask;
private Long categoryId;
private String categoryName;
private Long taskId;
private String taskName;
private Long subTaskId;
private String subTaskName;
private String content;
private String note;
private List<KeywordGetResponseDto> keywordList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ public CardGetResponseDto getCard(Long cardId) {
List<FileGetResponseDto> fileGetResponseDTOList = getFileDtoList(cardId);
List<ScreenshotGetResponseDto> screenshotResponseDtoList = getScreenshotDtoList(cardId);

return CardGetResponseDto.of(card.getId(), category.getName(), task.getName(), card.getSubTask().getName(), card.getContent(), card.getNote(), keywordResponseDtoList, screenshotResponseDtoList, fileGetResponseDTOList);
return CardGetResponseDto.of(card.getId(), category.getId(), category.getName(),
task.getId(), task.getName(), card.getSubTask().getId(), card.getSubTask().getName(), card.getContent(), card.getNote(), keywordResponseDtoList, screenshotResponseDtoList, fileGetResponseDTOList);
}

private Long getPlacementOrder(SubTask subTask) {
Expand Down

0 comments on commit d1d8489

Please sign in to comment.