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

Commit 84165807 authored by jiangxiulong's avatar jiangxiulong

路由排序

parent 570612c5
......@@ -513,7 +513,7 @@ public class DataUtils {
if (obj == null) {
List<KylinOrderExpressRouteVo> routeVoList = mongoTemplate.find(
Query.query(Criteria.where("orderTicketsId").is(orderTicketsId))
.with(Sort.by(Sort.Direction.ASC, "createdAt")),
.with(Sort.by(Sort.Direction.DESC, "createdAt")),
KylinOrderExpressRouteVo.class, KylinOrderExpressRouteVo.class.getSimpleName()
);
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