Index: core-module/pom.xml
===================================================================
diff -u -re1feabe8b0b88b383d0c7317791faaf8650f6c28 -r3cb6e5d160871ed0f65779edc2e4c9f289769570
--- core-module/pom.xml (.../pom.xml) (revision e1feabe8b0b88b383d0c7317791faaf8650f6c28)
+++ core-module/pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570)
@@ -7,7 +7,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.01.22
+ 23.01.23
../pom.xml
@@ -31,7 +31,7 @@
313devgrp
lib-module
- 23.01.22
+ 23.01.23
pom
Index: core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java
===================================================================
diff -u -re1feabe8b0b88b383d0c7317791faaf8650f6c28 -r3cb6e5d160871ed0f65779edc2e4c9f289769570
--- core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision e1feabe8b0b88b383d0c7317791faaf8650f6c28)
+++ core-module/src/main/java/egovframework/com/ext/jstree/springHibernate/core/service/JsTreeHibernateServiceImpl.java (.../JsTreeHibernateServiceImpl.java) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570)
@@ -59,7 +59,9 @@
@SuppressWarnings("unchecked")
@Override
public List getPaginatedChildNode(T jsTreeHibernateDTO) throws Exception {
-
+
+ jsTreeHibernateDao.setClazz(jsTreeHibernateDTO.getClass());
+ int totalCount = jsTreeHibernateDao.getCount(jsTreeHibernateDTO);
/** paging */
PaginationInfo paginationInfo = jsTreeHibernateDTO.getPaginationInfo();
paginationInfo.setCurrentPageNo(jsTreeHibernateDTO.getPageIndex());
@@ -70,9 +72,9 @@
jsTreeHibernateDTO.setLastIndex(paginationInfo.getLastRecordIndex());
jsTreeHibernateDTO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
- jsTreeHibernateDao.setClazz(jsTreeHibernateDTO.getClass());
jsTreeHibernateDTO.setOrder(Order.asc("c_position"));
List list = jsTreeHibernateDao.getList(jsTreeHibernateDTO);
+ list.stream().forEach(data -> data.getPaginationInfo().setTotalRecordCount(totalCount));
return list;
}
Index: lib-module/pom.xml
===================================================================
diff -u -re1feabe8b0b88b383d0c7317791faaf8650f6c28 -r3cb6e5d160871ed0f65779edc2e4c9f289769570
--- lib-module/pom.xml (.../pom.xml) (revision e1feabe8b0b88b383d0c7317791faaf8650f6c28)
+++ lib-module/pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570)
@@ -5,7 +5,7 @@
313devgrp
java-service-tree-framework-core-library
- 23.01.22
+ 23.01.23
../pom.xml
Index: pom.xml
===================================================================
diff -u -re1feabe8b0b88b383d0c7317791faaf8650f6c28 -r3cb6e5d160871ed0f65779edc2e4c9f289769570
--- pom.xml (.../pom.xml) (revision e1feabe8b0b88b383d0c7317791faaf8650f6c28)
+++ pom.xml (.../pom.xml) (revision 3cb6e5d160871ed0f65779edc2e4c9f289769570)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
java-service-tree-framework-core-library
- 23.01.22
+ 23.01.23
pom
java-service-tree-framework-core-library