Commit d8897e52 authored by czh030's avatar czh030

Merge remote-tracking branch 'origin/luxinyun_v3_dev' into luxinyun_v3_dev

parents 4ff02a6d 5bd69198
......@@ -2098,12 +2098,12 @@ public class CommodityServiceImpl implements ICommodityService {
}
//排序
Order publishTimeOrder = criteriaBuilder.desc(root.get("publishTime"));
Order checkTimeOrder = criteriaBuilder.desc(root.get("checkTime"));
Order applyTimeOrder = criteriaBuilder.desc(root.get("applyTime"));
// Order publishTimeOrder = criteriaBuilder.desc(root.get("publishTime"));
// Order checkTimeOrder = criteriaBuilder.desc(root.get("checkTime"));
// Order applyTimeOrder = criteriaBuilder.desc(root.get("applyTime"));
Order idOrder = criteriaBuilder.desc(root.get("id"));
return query.distinct(true).orderBy(publishTimeOrder, checkTimeOrder, applyTimeOrder, idOrder).where(finalConditions).getRestriction();
return query.distinct(true).orderBy(idOrder).where(finalConditions).getRestriction();
};
}
......
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