Skip to content

Commit

Permalink
refactor : 프로글매타입 포함관계로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MyunghyunNero committed Nov 23, 2023
1 parent 701db4d commit 2899f0b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ private BooleanBuilder createSearchCondition(ProgramSearchReq programSearchReq)
}

if(programSearchReq.getProgramType() != null) {
booleanBuilder.and(program.programType.eq(programSearchReq.getProgramType()));
booleanBuilder.and(program.programType.contains(programSearchReq.getProgramType()));
}
if(programSearchReq.getDetailType() != null) {
booleanBuilder.and(program.detailType.eq(programSearchReq.getDetailType()));
booleanBuilder.and(program.detailType.contains(programSearchReq.getDetailType()));
}
if(programSearchReq.getLocation() != null) {
booleanBuilder.and(program.location.contains(programSearchReq.getLocation()));
Expand Down Expand Up @@ -148,7 +148,7 @@ private BooleanBuilder createSimiliarProgramCondition(ProgramSimilarReq programS
}

if(programSimilarReq.getProgramType() != null) {
booleanBuilder.or(program.programType.eq(programSimilarReq.getProgramType()));
booleanBuilder.or(program.programType.contains(programSimilarReq.getProgramType()));
}


Expand Down

0 comments on commit 2899f0b

Please sign in to comment.