diff --git a/src/main/java/kusitms/gallae/repository/program/ProgramRepositoryImpl.java b/src/main/java/kusitms/gallae/repository/program/ProgramRepositoryImpl.java index 588064d..ff460a5 100644 --- a/src/main/java/kusitms/gallae/repository/program/ProgramRepositoryImpl.java +++ b/src/main/java/kusitms/gallae/repository/program/ProgramRepositoryImpl.java @@ -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())); @@ -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())); }