remove id men

This commit is contained in:
dirgantarasiahaan
2023-06-05 11:29:59 +07:00
parent 180575ce4f
commit 3b7e7c5dc8
10 changed files with 123 additions and 17 deletions

View File

@@ -17,9 +17,9 @@ public interface MenusRepository extends JpaRepository<Menus, Long> {
@Query(value = "SELECT m " +
"FROM Menus m " +
"WHERE m.id in (SELECT DISTINCT(s.parentId) from Menus s " +
"order by s.parentId) " +
"AND m.isDelete = false")
"WHERE m.parentId = 0 " +
"AND m.isDelete = false " +
"ORDER BY m.urutan")
List<Menus> findAllParentMenu();