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

Commit 2e4b418b authored by zhengfuxin's avatar zhengfuxin

按照 需求改为 上架时间排序

parent 2acf665e
......@@ -520,7 +520,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Pattern pattern = Pattern.compile("^.*"+name+".*$", Pattern.CASE_INSENSITIVE);
query.addCriteria(Criteria.where("name").regex(pattern));
}
query.with(Sort.by(Sort.Direction.DESC, "count"));
query.with(Sort.by(Sort.Direction.DESC, "shelvesAt"));
// 查询总数
List<GoblinGoodsInfoVo> list = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
// 计算库存
......
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