Index: core-module/pom.xml =================================================================== diff -u -r3cb6e5d160871ed0f65779edc2e4c9f289769570 -rf3f099e8036578494848f0278b4c75b3b4facce7 --- core-module/pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570) +++ core-module/pom.xml (.../pom.xml) (revision f3f099e8036578494848f0278b4c75b3b4facce7) @@ -7,7 +7,7 @@ 313devgrp java-service-tree-framework-core-library - 23.01.23 + 23.01.24 ../pom.xml @@ -31,7 +31,7 @@ 313devgrp lib-module - 23.01.23 + 23.01.24 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java =================================================================== diff -u -r3cb6e5d160871ed0f65779edc2e4c9f289769570 -rf3f099e8036578494848f0278b4c75b3b4facce7 --- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570) +++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision f3f099e8036578494848f0278b4c75b3b4facce7) @@ -62,17 +62,21 @@ jsTreeHibernateDao.setClazz(jsTreeHibernateDTO.getClass()); int totalCount = jsTreeHibernateDao.getCount(jsTreeHibernateDTO); + + int autoPageSize = (int) Math.ceil(totalCount / jsTreeHibernateDTO.getPageUnit()); + /** paging */ PaginationInfo paginationInfo = jsTreeHibernateDTO.getPaginationInfo(); + paginationInfo.setTotalRecordCount(totalCount); paginationInfo.setCurrentPageNo(jsTreeHibernateDTO.getPageIndex()); paginationInfo.setRecordCountPerPage(jsTreeHibernateDTO.getPageUnit()); - paginationInfo.setPageSize(jsTreeHibernateDTO.getPageSize()); - + paginationInfo.setPageSize(autoPageSize); + jsTreeHibernateDTO.setFirstIndex(paginationInfo.getFirstRecordIndex()); jsTreeHibernateDTO.setLastIndex(paginationInfo.getLastRecordIndex()); jsTreeHibernateDTO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - jsTreeHibernateDTO.setOrder(Order.asc("c_position")); + jsTreeHibernateDTO.setOrder(Order.desc("c_left")); List list = jsTreeHibernateDao.getList(jsTreeHibernateDTO); list.stream().forEach(data -> data.getPaginationInfo().setTotalRecordCount(totalCount)); return list; Index: lib-module/pom.xml =================================================================== diff -u -r3cb6e5d160871ed0f65779edc2e4c9f289769570 -rf3f099e8036578494848f0278b4c75b3b4facce7 --- lib-module/pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570) +++ lib-module/pom.xml (.../pom.xml) (revision f3f099e8036578494848f0278b4c75b3b4facce7) @@ -5,7 +5,7 @@ 313devgrp java-service-tree-framework-core-library - 23.01.23 + 23.01.24 ../pom.xml Index: pom.xml =================================================================== diff -u -r3cb6e5d160871ed0f65779edc2e4c9f289769570 -rf3f099e8036578494848f0278b4c75b3b4facce7 --- pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570) +++ pom.xml (.../pom.xml) (revision f3f099e8036578494848f0278b4c75b3b4facce7) @@ -10,7 +10,7 @@ 4.0.0 313devgrp java-service-tree-framework-core-library - 23.01.23 + 23.01.24 pom java-service-tree-framework-core-library