Browse Source

日志

platform-api
yx 2 years ago
parent
commit
e0987447f9
  1. 4
      ruoyi-code/src/main/java/com/ruoyi/code/camera/controller/CameraController.java
  2. 2
      ruoyi-code/src/main/java/utils/run_device_log_search.java

4
ruoyi-code/src/main/java/com/ruoyi/code/camera/controller/CameraController.java

@ -203,7 +203,7 @@ public class CameraController extends BaseController @@ -203,7 +203,7 @@ public class CameraController extends BaseController
*/
@RequestMapping("/setautocfg")
public R setAutoCfg(@RequestBody Map<String, Object> params){
String id = (String) params.get("id");
int id = (Integer) params.get("id");
Camera camera = cameraService.getById(id);
run_device_cfg cfg = new run_device_cfg();
@ -229,7 +229,7 @@ public class CameraController extends BaseController @@ -229,7 +229,7 @@ public class CameraController extends BaseController
run_device_log_search logSearch = new run_device_log_search();
List<LogInfo> data = logSearch.logInfoSearchByTime(new NativeLong(Long.parseLong(camera.getLoginId())), startTime, endTime);
System.out.println(data);
return R.ok().put("data",data);
}

2
ruoyi-code/src/main/java/utils/run_device_log_search.java

@ -459,7 +459,7 @@ public class run_device_log_search implements ActionListener { @@ -459,7 +459,7 @@ public class run_device_log_search implements ActionListener {
String cClientType = DataUtils.sdk_data_byteArrayToString(stuLogInfo.stuLogDetail.cClientType, GlobalTool.getEncodeType());
logInfo.setCClientType(cClientType);
System.out.println(cClientType);
logInfoList.add(logInfo);
}

Loading…
Cancel
Save