-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor/gabang2/code refactoring #155
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 잘 읽었습니다!
고생하셨어요
@@ -9,7 +9,7 @@ | |||
import java.util.Optional; | |||
|
|||
public interface FeedRepository extends JpaRepository<Feed, Long> { | |||
List<Feed> findFeedByMemberAndDelYn(Member member, Boolean delYn); | |||
List<Feed> findFeedByMemberAndDelYnAndFulfillYn(Member member, Boolean delYn, Boolean fulfillYn); | |||
|
There was a problem hiding this comment.
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()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
훨씬 깔끔하네요 👍
@@ -29,6 +29,8 @@ public class ImageService { | |||
|
|||
public String updateImage(MultipartFile file, String entityName, String columnName) { | |||
|
|||
if (file.isEmpty()) return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파일 유효성 체크를 이미지서비스에 빼셨네요
중복 많이 줄인 것 같습니다!
🌲 Summary
level&member코드 클린코드로 변경... 하도록 노력했습니다.
☘️ Issue number and link
#65
🌵 To Reviewers
보고 리뷰 꼭 부탁드릴게요 !