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

Commit 988c4a32 authored by jiangxiulong's avatar jiangxiulong

正在热卖排序

parent a5c5e846
...@@ -278,6 +278,9 @@ public class DataUtils { ...@@ -278,6 +278,9 @@ public class DataUtils {
if (obj == null) { if (obj == null) {
// 固定条件 // 固定条件
Query query = getCommonWhere(); Query query = getCommonWhere();
// 排序
Sort sortName = Sort.by(Sort.Direction.ASC, "sellTime");
query.with(sortName);
// 今天的 // 今天的
HashMap toDayTime = DateUtil.oneDayStartEnd(); HashMap toDayTime = DateUtil.oneDayStartEnd();
...@@ -292,6 +295,9 @@ public class DataUtils { ...@@ -292,6 +295,9 @@ public class DataUtils {
// 固定条件 // 固定条件
Query queryT = getCommonWhere(); Query queryT = getCommonWhere();
// 排序
Sort sortNameT = Sort.by(Sort.Direction.ASC, "sellTime");
queryT.with(sortNameT);
// 三天的 // 三天的
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
......
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