| | |
| | | import com.ruoyi.common.constant.CameraConstants;
|
| | | import com.ruoyi.device.camera.domain.ArdCameras;
|
| | | import com.ruoyi.device.camera.domain.CameraCmd;
|
| | | import com.ruoyi.device.camera.domain.DeptAndCamerasDto;
|
| | | import com.ruoyi.device.camera.service.IArdCamerasService;
|
| | | import com.ruoyi.device.camera.service.ICameraSdkService;
|
| | | import com.ruoyi.common.utils.poi.ExcelUtil;
|
| | |
| | | List<ArdCameras> list = ardCamerasService.selectArdCamerasList(ardCamera);
|
| | | return getDataTable(list);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询相机设备列表(不校验权限)
|
| | | */
|
| | | @GetMapping("/list/noPerm")
|
| | | @ApiOperation("查询相机设备列表")
|
| | | public TableDataInfo listNoPerm(ArdCameras ardCamera) {
|
| | | startPage();
|
| | | List<ArdCameras> list = ardCamerasService.selectArdCamerasList(ardCamera);
|
| | | return getDataTable(list);
|
| | | }
|
| | | /**
|
| | | * 导出相机设备列表
|
| | | */
|
| | |
| | | @ApiOperation("选择相机数据")
|
| | | public List options(ArdCameras ardCameras) {
|
| | | List<ArdCameras> list = ardCamerasService.findOptions(ardCameras);
|
| | | System.out.println("list:"+list.size());
|
| | | //System.out.println("list:"+list.size());
|
| | | List options = new ArrayList();
|
| | | for (ArdCameras item : list) {
|
| | | Map option = new HashMap();
|
| | |
| | | Map deptAndCamera = ardCamerasService.getChildDeptAndCamera(true);
|
| | | return AjaxResult.success(deptAndCamera);
|
| | | }
|
| | |
|
| | | @GetMapping("/getDeptAndCamera1")
|
| | | @ApiOperation("获取部门和相机1")
|
| | | public AjaxResult getDeptAndCamera1() {
|
| | | List<DeptAndCamerasDto> deptAndCamera = ardCamerasService.getChildDeptAndCamera();
|
| | | return AjaxResult.success(deptAndCamera);
|
| | | }
|
| | | @GetMapping("/getDeptAndCameraWithCheckBox")
|
| | | @ApiOperation("获取部门和相机(开启复选框)")
|
| | | public AjaxResult getDeptAndCameraWithCheckBox() {
|