Browse Source

bug修复

lmstack 3 years ago
parent
commit
d7c5b90caf

+ 1 - 1
src/main/java/cn/fastfun/controller/api/ApiAppDeviceLogController.java

@@ -233,7 +233,7 @@ public class ApiAppDeviceLogController {
             finalQuery.addParam(QueryParamExp.desc("addTime"));
             finalQuery.addParam(QueryParamExp.eq("sn", p.getSn()));
             finalQuery.addParam(QueryParamExp.eq("type", 2));
-            Page<AppDeviceLog> deviceLogPage = deviceLogService.findByParam(query);
+            Page<AppDeviceLog> deviceLogPage = deviceLogService.findByParam(finalQuery);
             AppDeviceLog lastDeviceLogPage = new AppDeviceLog();
             if (!deviceLogPage.isEmpty()) {
                 lastDeviceLogPage =  deviceLogPage.getContent().get(0);