Commit 9d37f0c5 authored by 赵啸非's avatar 赵啸非

添加设备日志类型筛选

parent 0e28a85f
...@@ -58,8 +58,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces ...@@ -58,8 +58,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override @Override
protected void doListBefore(AccessLogEntity query, Map<String, Object> model, Context context) throws AppException { protected void doListBefore(AccessLogEntity query, Map<String, Object> model, Context context) throws AppException {
List<OrderCol> orderColList = new ArrayList<>(); List<OrderCol> orderColList = new ArrayList<>();
orderColList.add(new OrderCol("createTime", OrderCol.DESCENDING)); orderColList.add(new OrderCol("id", OrderCol.DESCENDING));
orderColList.add(new OrderCol("spanId", OrderCol.ASCENDING));
query.setOrderColList(orderColList); query.setOrderColList(orderColList);
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
} }
......
...@@ -52,7 +52,7 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe ...@@ -52,7 +52,7 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
@Override @Override
protected void doListBefore(BizLogEntity query, Map<String, Object> model, Context context) throws AppException { protected void doListBefore(BizLogEntity query, Map<String, Object> model, Context context) throws AppException {
List<OrderCol> orderColList = new ArrayList<>(); List<OrderCol> orderColList = new ArrayList<>();
orderColList.add(new OrderCol("createTime", OrderCol.DESCENDING)); orderColList.add(new OrderCol("id", OrderCol.DESCENDING));
query.setOrderColList(orderColList); query.setOrderColList(orderColList);
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
} }
......
...@@ -54,7 +54,7 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL ...@@ -54,7 +54,7 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
@Override @Override
protected void doListBefore(ErrorLogEntity query, Map<String, Object> model, Context context) throws AppException { protected void doListBefore(ErrorLogEntity query, Map<String, Object> model, Context context) throws AppException {
List<OrderCol> orderColList = new ArrayList<>(); List<OrderCol> orderColList = new ArrayList<>();
orderColList.add(new OrderCol("createTime", OrderCol.DESCENDING)); orderColList.add(new OrderCol("id", OrderCol.DESCENDING));
query.setOrderColList(orderColList); query.setOrderColList(orderColList);
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
} }
......
...@@ -60,7 +60,7 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper ...@@ -60,7 +60,7 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
@Override @Override
protected void doListBefore(OperateLogEntity query, Map<String, Object> model, Context context) throws AppException { protected void doListBefore(OperateLogEntity query, Map<String, Object> model, Context context) throws AppException {
List<OrderCol> orderColList = new ArrayList<>(); List<OrderCol> orderColList = new ArrayList<>();
orderColList.add(new OrderCol("createTime", OrderCol.DESCENDING)); orderColList.add(new OrderCol("id", OrderCol.DESCENDING));
query.setOrderColList(orderColList); query.setOrderColList(orderColList);
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
} }
......
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