From 97e90c084a6d71170af28a28bfc06b44a9d9e594 Mon Sep 17 00:00:00 2001
From: webapp <webapp@home-server.attdns.com>
Date: 星期五, 27 九月 2019 20:45:47 +0800
Subject: [PATCH] 优化分页问题
---
CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java b/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
index e50cd2f..c02c0f3 100644
--- a/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
@@ -42,7 +42,6 @@
if (page != PageDto.DEFAULT_PAGE) {
communityMemberDto.setPage((page - 1) * communityMemberDto.getRow());
- communityMemberDto.setRow(page * communityMemberDto.getRow());
}
List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.beanCovertMap(communityMemberDto));
@@ -65,7 +64,6 @@
if (page != PageDto.DEFAULT_PAGE) {
communityDto.setPage((page - 1) * communityDto.getRow());
- communityDto.setRow(page * communityDto.getRow());
}
List<CommunityDto> communitys = BeanConvertUtil.covertBeanList(communityServiceDaoImpl.getCommunityInfoNew(BeanConvertUtil.beanCovertMap(communityDto)), CommunityDto.class);
--
Gitblit v1.8.0