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

Commit 30399297 authored by 胡佳晨's avatar 胡佳晨

修改bug

parent 94c86adb
...@@ -864,7 +864,7 @@ public class GoblinMongoUtils { ...@@ -864,7 +864,7 @@ public class GoblinMongoUtils {
spuIdAndName = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName()); spuIdAndName = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
spuIdList = spuIdAndName.stream().map(GoblinGoodsInfoVo::getSpuId).collect(Collectors.toList()); spuIdList = spuIdAndName.stream().map(GoblinGoodsInfoVo::getSpuId).collect(Collectors.toList());
if (finalCount > spuIdList.size()) { if (finalCount > spuIdList.size()) {
finalCount = spuIdList.size() - 1; finalCount = spuIdList.size();
} }
} }
criteria = criteria.and("spuId").in(spuIdList.subList(skipCount, finalCount)); criteria = criteria.and("spuId").in(spuIdList.subList(skipCount, finalCount));
......
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