Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Mar 6, 2024
1 parent 6ec16fb commit c76d4dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Flux<GetUserResponse> getUserByGenAndMajorAndClub(Integer gen, String maj
Query query = new Query();

if(gen != 0) query.addCriteria(Criteria.where("detail.gen").is(gen));
if(major != null && !major.isEmpty()) query.addCriteria(Criteria.where("detail.major").is(major));
if(major != null && !major.isEmpty()) query.addCriteria(Criteria.where("detail.major").is(getMajorType.execute(major.toLowerCase())));
if(club != null && !club.isEmpty()) query.addCriteria(Criteria.where("detail.club").is(club));

return reactiveMongoTemplate.find(query, User.class)
Expand Down

0 comments on commit c76d4dc

Please sign in to comment.