Skip to content

Commit a23fab4

Browse files
CLAP-214 Hotfix : AddCategoryService 지연로딩 오류 수정
* CLAP-110 Feature : 담당자별 작업 처리량 조회 API 구현 <footer> - 관련: #73 * CLAP-111 Refactor : 통계 조회 API 리팩토링 및 기능 수정 <footer> - 관련: #74 * 내 작업한 내용에 대한 설명 * 담당자 조회 API 구현 * CLAP-111 Refactor : 통계 조회 API 주소 통합, 리팩토링, 예외처리 <footer> - 관련: #74 * Bug : 프로퍼티파일 수정 * CLAP-104 CI/CD : CI에서 s3.yml 파일 생성하도록 수정 * CLAP-146 Feature : 카테고리 목록 조회 API 구현 <footer> - 관련: #118 * CLAP-147 Feature : 카테고리 수정 API 구현 <footer> - 관련: #119 * CLAP-147 Feature : 카테고리 추가, 수정 API 리뷰반영 수정 <footer> - 관련: #119 * CLAP-148 Feature : 카테고리 삭제 API 구현 <footer> - 관련: #120 * CLAP-148 Feature : 카테고리 삭제 API 수정 <footer> - 관련: #120 * CLAP-148 Docs : 카테고리 API 스웨거 수정 <footer> - 관련: #120 * CLAP-107 Bug : CI test yml파일 key 중복 수정 <footer> - 관련: #60 * CLAP-148 Feature : 카테고리 CUD 리뷰 반영 수정, 조회 반환 양식 수정 <footer> - 관련: #120 * CLAP-214 Cleanup : 통계, 카테고리 미흡한부분 리팩토링 <footer> - 관련: #216 * CLAP-214 Fix : 통계조회 API 파라미터 바인딩 오류 수정 <footer> - 관련: #216 * CLAP-214 Fix : addConverter 수정 <footer> - 관련: #216 * CLAP-214 Hotfix : 추가한 파일들 제거 <footer> - 관련: #216 * CLAP-214 Hotfix : FindStatisticsController 스위치문 수정 <footer> - 관련: #216 * CLAP-214 Hotfix : AddCategoryService 지연로딩 오류 수정 <footer> - 관련: #216
1 parent fac1a5a commit a23fab4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/clap/server/application/service/admin/AddCategoryService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import clap.server.domain.model.task.Category;
1111
import clap.server.exception.ApplicationException;
1212
import lombok.RequiredArgsConstructor;
13+
import org.springframework.transaction.annotation.Transactional;
1314

1415
import java.util.Optional;
1516

@@ -24,6 +25,7 @@ public class AddCategoryService implements AddMainCategoryUsecase, AddSubCategor
2425
private final LoadMemberPort loadMemberPort;
2526

2627
@Override
28+
@Transactional
2729
public void addMainCategory(Long adminId, String code, String name) {
2830
Optional<Member> activeMember = loadMemberPort.findActiveMemberById(adminId);
2931
Category mainCategory = Category.createMainCategory(
@@ -33,6 +35,7 @@ public void addMainCategory(Long adminId, String code, String name) {
3335
}
3436

3537
@Override
38+
@Transactional
3639
public void addSubCategory(Long adminId, Long mainCategoryId, String code, String name) {
3740
Optional<Member> activeMember = loadMemberPort.findActiveMemberById(adminId);
3841
Optional<Category> mainCategory = loadCategoryPort.findById(mainCategoryId);

0 commit comments

Comments
 (0)