|
@@ -136,8 +136,10 @@ public class ECqlServiceImpl implements IECqlService{
|
|
|
pageSize = Long.valueOf(pageParams.get("pageSize").toString());
|
|
|
}
|
|
|
|
|
|
+ int startIndex = pageNumber.intValue()-1 <=0?0:pageNumber.intValue()-1;
|
|
|
+
|
|
|
//设置分页查询参数
|
|
|
- query.setStartIndex(pageNumber.intValue()-1 <=0?0:pageNumber.intValue()-1);
|
|
|
+ query.setStartIndex(startIndex*pageSize.intValue());
|
|
|
|
|
|
query.setMaxFeatures(pageSize.intValue());
|
|
|
|