|
|
@@ -250,6 +250,11 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
*/
|
|
|
private static final int MAXPAGE_USERSPACEDETAIL = 100;
|
|
|
|
|
|
+ /**
|
|
|
+ * 企业圈资料每页最大size为50
|
|
|
+ */
|
|
|
+ private static final int MAXPAGESIZE = 50;
|
|
|
+
|
|
|
private ConcurrentHashMap<String, Field> sortFields = new ConcurrentHashMap<String, Field>();
|
|
|
|
|
|
private Field getPropertyField(Class<?> targetCls, String properyName) {
|
|
|
@@ -963,6 +968,10 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
if (pageParams.getPage() > MAXPAGE_USERSPACEDETAIL) {
|
|
|
pageParams.setPage(MAXPAGE_USERSPACEDETAIL);
|
|
|
}
|
|
|
+ // 最大size限制为50
|
|
|
+ if (pageParams.getSize() > MAXPAGESIZE) {
|
|
|
+ pageParams.setSize(MAXPAGESIZE);
|
|
|
+ }
|
|
|
SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.AC$US$DETAIL, pageParams);
|
|
|
if (idsPage.getTotalPage() > MAXPAGE_USERSPACEDETAIL) {
|
|
|
idsPage.setTotalPage(MAXPAGE_USERSPACEDETAIL);
|