diff --git a/nladmin-system/src/main/java/org/nl/modules/log/service/impl/RootLogServiceImpl.java b/nladmin-system/src/main/java/org/nl/modules/log/service/impl/RootLogServiceImpl.java index e2df9d9..9c78ace 100644 --- a/nladmin-system/src/main/java/org/nl/modules/log/service/impl/RootLogServiceImpl.java +++ b/nladmin-system/src/main/java/org/nl/modules/log/service/impl/RootLogServiceImpl.java @@ -38,7 +38,7 @@ public class RootLogServiceImpl implements RootLogService { String begin_time = (String) whereJson.get("begin_time"); String end_time = (String) whereJson.get("end_time"); - Query query = new Query().with(Sort.by("date")); + Query query = new Query().with(Sort.by(Sort.Order.desc("date"))); if (StrUtil.isEmpty(log_type)) { log_type = "default"; @@ -82,7 +82,7 @@ public class RootLogServiceImpl implements RootLogService { device_code = json.getString("device_code"); } if (StrUtil.isNotEmpty(begin_time) && StrUtil.isNotEmpty(end_time)) { - query.addCriteria(Criteria.where("date") + query.addCriteria(Criteria.where("create_time") .gte(begin_time) .lte(end_time)); }