Skip to content

Commit

Permalink
Photo List Camera NG
Browse files Browse the repository at this point in the history
NG로 수정
  • Loading branch information
melitina915 committed Nov 27, 2024
1 parent 9f7c640 commit 693f17f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public interface PhotoRepository extends JpaRepository<Photo, Long> {

List<Photo> findAllByPhotoNgtypeNot(int photoNgtype);

List<Photo> findAllByPhotoPosition(int photoPosition);
List<Photo> findAllByPhotoPositionAndPhotoNgtypeNot(int photoPosition, int photoNgtype);

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public List<Photo> getPhotoListNgAll() {

public List<Photo> getPhotoListNgCamera(int photoPosition) {

List<Photo> photoList = photoRepository.findAllByPhotoPosition(photoPosition);
List<Photo> photoList = photoRepository.findAllByPhotoPositionAndPhotoNgtypeNot(photoPosition, 0);

return photoList;

Expand Down

0 comments on commit 693f17f

Please sign in to comment.