Skip to content

Commit

Permalink
Merge pull request #840 from balaji-alluru/new-1.1.5.3
Browse files Browse the repository at this point in the history
Updated LocationRepository
  • Loading branch information
vishwa-vyom authored Feb 9, 2023
2 parents 1de2dc7 + 916c531 commit 7e4537e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ List<Location> findLocationByHierarchyLevelStartsWith(Short hierarchyLevel, Stri
@Query("FROM Location l WHERE l.name=?1 AND l.hierarchyLevel=?2 AND l.langCode=?3 AND NOT code=?4")
List<Location> findByNameAndLevelLangCodeNotCode(String name,Short hierarchyLevel, String langCode, String code);

@Query("FROM Location l WHERE l.name=?1 AND l.parentLocCode=?5 AND l.hierarchyLevel=?2 AND l.langCode=?3 AND NOT code=?4")
@Query("FROM Location l WHERE l.name=?1 AND l.parentLocCode=?5 AND l.hierarchyLevel=?2 AND l.langCode=?3 AND NOT code=?4 AND (l.isDeleted is null or l.isDeleted=false)")
List<Location> findByNameParentlocCodeAndLevelLangCodeNotCode(String name,Short hierarchyLevel, String langCode, String code,String parentLocCode);


Expand Down

0 comments on commit 7e4537e

Please sign in to comment.