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

Commit bcd9d217 authored by jiangxiulong's avatar jiangxiulong

路由排序

parent 73f73727
...@@ -510,7 +510,8 @@ public class DataUtils { ...@@ -510,7 +510,8 @@ public class DataUtils {
Object obj = redisUtil.get(redisKey); Object obj = redisUtil.get(redisKey);
if (obj == null) { if (obj == null) {
List<KylinOrderExpressRouteVo> routeVoList = mongoTemplate.find( List<KylinOrderExpressRouteVo> routeVoList = mongoTemplate.find(
Query.query(Criteria.where("orderTicketsId").is(orderTicketsId)), Query.query(Criteria.where("orderTicketsId").is(orderTicketsId))
.with(Sort.by(Sort.Direction.ASC, "createdAt")),
KylinOrderExpressRouteVo.class, KylinOrderExpressRouteVo.class.getSimpleName() KylinOrderExpressRouteVo.class, KylinOrderExpressRouteVo.class.getSimpleName()
); );
redisUtil.set(redisKey, routeVoList); redisUtil.set(redisKey, routeVoList);
......
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