remove id men
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user