Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5155ff7
CLAP-110 Feature : 담당자별 작업 처리량 조회 API 구현
hyoseong-Choi Jan 23, 2025
b7f2c2a
CLAP-111 Refactor : 통계 조회 API 리팩토링 및 기능 수정
hyoseong-Choi Jan 23, 2025
87d0fdb
내 작업한 내용에 대한 설명
nano-mm Jan 23, 2025
534aa24
담당자 조회 API 구현
nano-mm Jan 24, 2025
2b7f448
CLAP-111 Refactor : 통계 조회 API 주소 통합, 리팩토링, 예외처리
hyoseong-Choi Jan 24, 2025
72a66e4
Bug : 프로퍼티파일 수정
hyoseong-Choi Jan 24, 2025
8458cbd
CLAP-104 CI/CD : CI에서 s3.yml 파일 생성하도록 수정
hyoseong-Choi Jan 26, 2025
eb34ee8
CLAP-146 Feature : 카테고리 목록 조회 API 구현
hyoseong-Choi Jan 26, 2025
8146776
CLAP-147 Feature : 카테고리 수정 API 구현
hyoseong-Choi Jan 26, 2025
d24fdf8
CLAP-147 Feature : 카테고리 추가, 수정 API 리뷰반영 수정
hyoseong-Choi Jan 28, 2025
a0ebd44
CLAP-148 Feature : 카테고리 삭제 API 구현
hyoseong-Choi Jan 28, 2025
5fcc496
Merge branch 'develop' into CLAP-148
hyoseong-Choi Jan 28, 2025
0ff4b3b
CLAP-148 Feature : 카테고리 삭제 API 수정
hyoseong-Choi Jan 28, 2025
eefe6ee
CLAP-148 Docs : 카테고리 API 스웨거 수정
hyoseong-Choi Jan 28, 2025
b30cdde
CLAP-107 Bug : CI test yml파일 key 중복 수정
hyoseong-Choi Jan 29, 2025
c3292fe
CLAP-148 Feature : 카테고리 CUD 리뷰 반영 수정, 조회 반환 양식 수정
hyoseong-Choi Jan 30, 2025
2d63e7e
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Jan 30, 2025
5085370
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 2, 2025
915e6f9
CLAP-214 Cleanup : 통계, 카테고리 미흡한부분 리팩토링
hyoseong-Choi Feb 2, 2025
27e09cc
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 2, 2025
68c9f08
CLAP-214 Fix : 통계조회 API 파라미터 바인딩 오류 수정
hyoseong-Choi Feb 2, 2025
4f338ad
CLAP-214 Fix : addConverter 수정
hyoseong-Choi Feb 2, 2025
51ab7a5
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 2, 2025
67fc667
CLAP-214 Hotfix : 추가한 파일들 제거
hyoseong-Choi Feb 2, 2025
e4dc477
CLAP-214 Hotfix : FindStatisticsController 스위치문 수정
hyoseong-Choi Feb 2, 2025
4875e32
CLAP-214 Hotfix : AddCategoryService 지연로딩 오류 수정
hyoseong-Choi Feb 2, 2025
ebd4bcd
CLAP-214 Hotfix : DeleteCategoryService 카테고리 삭제 로직 수정
hyoseong-Choi Feb 3, 2025
3e2f5ed
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 3, 2025
4a5e4f0
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 3, 2025
a2292c8
CLAP-249 Refactor : 통계 조회 서비스 리팩토링
hyoseong-Choi Feb 3, 2025
520f47f
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 3, 2025
93531b5
CLAP-250 Test : 통계 조회 테스트코드 작성
hyoseong-Choi Feb 3, 2025
280d930
CLAP-214 Hotifx : 카테고리 수정 로직 수정
hyoseong-Choi Feb 4, 2025
7be324a
CLAP-214 Hotifx : 카테고리 수정 로직 수정
hyoseong-Choi Feb 4, 2025
e291921
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 5, 2025
efaaee3
CLAP-214 Hotifx : 카테고리 저장 트랜잭션 추가
hyoseong-Choi Feb 5, 2025
0e10e86
CLAP-214 Hotifx : 카테고리 저장 시간 수정
hyoseong-Choi Feb 5, 2025
40bc614
CLAP-285 Hotifx : 모든 카테고리 조회
hyoseong-Choi Feb 5, 2025
876c3ef
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-S…
hyoseong-Choi Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package clap.server.adapter.inbound.web.admin;

import clap.server.adapter.inbound.web.dto.admin.response.FindAllDepartmentsResponse;
import clap.server.application.mapper.DepartmentResponseMapper;
import clap.server.application.port.inbound.admin.FindAllDepartmentsUsecase;
import clap.server.common.annotation.architecture.WebAdapter;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Tag(name = "05. Admin")
@WebAdapter
@RequiredArgsConstructor
@RequestMapping("/api/managements")
public class FindDepartmentController {
private final FindAllDepartmentsUsecase findAllDepartmentsUsecase;

@Operation(summary = "부서 조회 API")
@Secured("ROLE_ADMIN")
@GetMapping("/departments")
public List<FindAllDepartmentsResponse> findAllDepartments() {
return findAllDepartmentsUsecase.findAllDepartments()
.stream()
.map(DepartmentResponseMapper::toFindAllDepartmentsResponse)
.toList();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package clap.server.adapter.inbound.web.dto.admin.response;

public record FindAllDepartmentsResponse(
Long departmentId,
String name) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package clap.server.application.mapper;

import clap.server.adapter.inbound.web.dto.admin.response.FindAllDepartmentsResponse;
import clap.server.domain.model.member.Department;

public class DepartmentResponseMapper {
public static FindAllDepartmentsResponse toFindAllDepartmentsResponse(Department department) {
return new FindAllDepartmentsResponse(department.getDepartmentId(), department.getName());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package clap.server.application.port.inbound.admin;

import clap.server.domain.model.member.Department;

import java.util.List;

public interface FindAllDepartmentsUsecase {
List<Department> findAllDepartments();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package clap.server.application.service.admin;

import clap.server.application.port.inbound.admin.FindAllDepartmentsUsecase;
import clap.server.application.port.outbound.member.LoadDepartmentPort;
import clap.server.common.annotation.architecture.ApplicationService;
import clap.server.domain.model.member.Department;
import lombok.RequiredArgsConstructor;

import java.util.List;

@ApplicationService
@RequiredArgsConstructor
public class FindAllDepartmentsService implements FindAllDepartmentsUsecase {
private final LoadDepartmentPort loadDepartmentPort;

@Override
public List<Department> findAllDepartments() {
return loadDepartmentPort.findActiveDepartments();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class StatisticsIndexingService {
private final LoadTaskPort loadTaskPort;
private final TaskDocumentPort taskDocumentPort;

@Scheduled(cron = "0 0 0 * * *")
@Scheduled(cron = "0 0 0 * * *")
@Transactional
public void IndexStatistics() {
taskDocumentPort.saveStatistics(
Expand Down