소스 검색

火调使用接口,添加火调相机绑定限制

lyhzzz 1 년 전
부모
커밋
c416a57320
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/java/com/fdkankan/ucenter/controller/fire/FdUserCameraController.java

+ 3 - 3
src/main/java/com/fdkankan/ucenter/controller/fire/FdUserCameraController.java

@@ -62,9 +62,9 @@ public class FdUserCameraController extends BaseController {
         if(ObjectUtils.isEmpty(cameraDetailEntity)){
             throw new BusinessException(CameraConstant.FAILURE_CODE_6020,CameraConstant.FAILURE_MSG_6020);
         }
-//        if (ObjectUtils.isEmpty(cameraDetailEntity.getCompanyId())) {
-//            throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
-//        }
+        if (ObjectUtils.isEmpty(cameraDetailEntity.getCompanyId()) || cameraDetailEntity.getCompanyId() != 25L) {
+            throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
+        }
 
         if(cameraDetailEntity.getUserId() != null){
             throw new BusinessException(AppConstant.FAILURE_CODE_4011, AppConstant.FAILURE_MSG_4011);