浏览代码

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

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);