Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#144 #147

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Feat/#144 #147

wants to merge 18 commits into from

Conversation

GayeongKimm
Copy link
Member

No description provided.


public ResponseData<List<NoticeRes>> getCreated(){
Member member = memberAuthenticationHolder.current();
List<DivisionMember> divisionMembers = divisionMemberService.getByMember(member);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

divisionMemberService.getByMember가 호출될 때 마다 getDivision으로 조직을 가져오는데 그냥 DivisionService에서 쿼리로 해결하는게 좋을 듯합니다

Notice notice = noticeService.save(generateNoticeReq.toEntity(member));

List<Division> divisions = generateNoticeReq.divisions().stream()
.map(divisionService::getById)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

division 개수만큼 SQL 조회하는 거 아닌가요?
SQL 한번만 쓸 수 있지 않나여?

@GayeongKimm GayeongKimm linked an issue Jan 17, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: notification CRUD
3 participants