|
@@ -2,6 +2,7 @@ package com.business.slfh.app.dahua.controller;
|
|
|
|
|
|
import com.business.slfh.manager.cameramanager.domain.TResCamera;
|
|
|
import com.business.slfh.manager.cameramanager.service.ITResCameraService;
|
|
|
+import com.sooka.framework.util.ShiroUtils;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -20,7 +21,10 @@ public class Dahua_Controller {
|
|
|
@CrossOrigin
|
|
|
@RequestMapping("queryAllCameras")
|
|
|
public List queryAllCameras(){
|
|
|
- List ls = itResCameraService.selectTResCameraList(new TResCamera());
|
|
|
+ Long deptId = ShiroUtils.getSysUser().getDeptId();//本部门及其以下部门的摄像头
|
|
|
+ TResCamera tResCamera= new TResCamera();
|
|
|
+ tResCamera.setDeptIdBelow(deptId);
|
|
|
+ List ls = itResCameraService.selectTResCameraList(tResCamera);
|
|
|
return ls;
|
|
|
}
|
|
|
|