Skip to content

Conversation

@gabang2
Copy link
Member

@gabang2 gabang2 commented Oct 4, 2023

🌲 Summary

level&member코드 클린코드로 변경... 하도록 노력했습니다.

☘️ Issue number and link

#65

🌵 To Reviewers

보고 리뷰 꼭 부탁드릴게요 !

@gabang2 gabang2 requested a review from KarmaPol October 4, 2023 14:43
@gabang2 gabang2 changed the base branch from master to develop October 4, 2023 14:43
Copy link
Member

@KarmaPol KarmaPol left a comment

Choose a reason for hiding this comment

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

코드 잘 읽었습니다!
고생하셨어요

public interface FeedRepository extends JpaRepository<Feed, Long> {
List<Feed> findFeedByMemberAndDelYn(Member member, Boolean delYn);
List<Feed> findFeedByMemberAndDelYnAndFulfillYn(Member member, Boolean delYn, Boolean fulfillYn);

Copy link
Member

Choose a reason for hiding this comment

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

FulfillYn도 고려해야하네요
수정해주셔서 감사합니다

* Level 변경시 모든 멤버의 레벨에 반영
*/
private void allMemberLevelChange(){
memberRepository.findAll().forEach(member -> member.setLevel(getMemberLevel(member.getExp())));
Copy link
Member

Choose a reason for hiding this comment

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

훨씬 깔끔하네요 👍


public String updateImage(MultipartFile file, String entityName, String columnName) {

if (file.isEmpty()) return null;
Copy link
Member

Choose a reason for hiding this comment

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

파일 유효성 체크를 이미지서비스에 빼셨네요
중복 많이 줄인 것 같습니다!

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.

3 participants