| | |
| | | camera.setState("0");
|
| | | int i = ardCamerasService.insertArdCameras(camera);
|
| | | if (i > 0) {
|
| | | cameraSdkService.logout(camera.getId());
|
| | | AjaxResult result = cameraSdkService.login(camera);
|
| | | return success(result.get("msg"));
|
| | | } else {
|
| | |
| | | camera.setState("0");
|
| | | int i = ardCamerasService.updateArdCameras(camera);
|
| | | if (i > 0) {
|
| | | cameraSdkService.logout(camera.getId());
|
| | | AjaxResult result = cameraSdkService.login(camera);
|
| | | return success(result.get("msg"));
|
| | | } else {
|
| | |
| | | @GetMapping("/getDeptAndCameraWithCheckBox")
|
| | | @ApiOperation("获取部门和相机(开启复选框)")
|
| | | public AjaxResult getDeptAndCameraWithCheckBox() {
|
| | | Map deptAndCamera = ardCamerasService.getChildDeptAndCamera(false);
|
| | | //Map deptAndCamera = ardCamerasService.getChildDeptAndCamera(false);
|
| | | List<Map<String, Object>> deptAndCamera = ardCamerasService.getChildDeptAndCameraOwn(false);
|
| | | return AjaxResult.success(deptAndCamera);
|
| | | }
|
| | |
|