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