lyhzzz 6 months ago
parent
commit
24cae6f213

+ 6 - 1
src/main/java/com/fdkankan/manage/inner/controller/InnerController.java

@@ -186,7 +186,12 @@ public class InnerController extends BaseController {
         if(rtkDevice.getAccountType() == 0){    //账号池
             throw new BusinessException(ResultCode.RTK_UPDATE_ERROR);
         }
-
+        if(rtkDevice.getCameraType() !=3){ //只有深光能改
+            throw new BusinessException(ResultCode.RTK_UPDATE_ERROR);
+        }
+        if(rtkDevice.getRtkType() !=2){ //只有北云板卡能改
+            throw new BusinessException(ResultCode.RTK_UPDATE_ERROR);
+        }
         LambdaUpdateWrapper<RtkDevice> wrapper = new LambdaUpdateWrapper<>();
         wrapper.eq(RtkDevice::getId,rtkDevice.getId());
         wrapper.set(RtkDevice::getUserName,param.getUserName());