记得上下班打卡 | git大法好,push需谨慎

Commit dacf8885 authored by jiangxiulong's avatar jiangxiulong

本地演出不够一页 推荐其他演出到一页

parent beb3771e
...@@ -139,6 +139,8 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM ...@@ -139,6 +139,8 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
long newSize = size - count; long newSize = size - count;
Pageable newPageable = PageRequest.of(0, (int) newSize, sortName); Pageable newPageable = PageRequest.of(0, (int) newSize, sortName);
queryOther.with(newPageable); queryOther.with(newPageable);
query.fields().exclude("details");
query.fields().exclude("noticeImage");
otherlist = mongoTemplate.find(queryOther, KylinPerformanceVo.class, KylinPerformanceVo.class.getSimpleName()); otherlist = mongoTemplate.find(queryOther, KylinPerformanceVo.class, KylinPerformanceVo.class.getSimpleName());
if (otherlist.size() > 0) { if (otherlist.size() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment