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