panlinlin
2024-06-14 07a8ef9e256c70a3a5b15782add81dcad1e2ffc2
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java
@@ -264,6 +264,14 @@
      deviceChannelService.updateChannel(deviceId, channel);
   }
   @Operation(summary = "修改通道的码流类型", security = @SecurityRequirement(name = JwtUtils.HEADER))
   @Parameter(name = "deviceId", description = "设备国标编号", required = true)
   @Parameter(name = "channel", description = "通道信息", required = true)
   @PostMapping("/channel/stream/identification/update/")
   public void updateChannelStreamIdentification(DeviceChannel channel){
      deviceChannelService.updateChannelStreamIdentification(channel);
   }
   /**
    * 修改数据流传输模式
    * @param deviceId 设备id
@@ -314,6 +322,9 @@
   public void updateDevice(Device device){
      if (device != null && device.getDeviceId() != null) {
         if (device.getSubscribeCycleForMobilePosition() > 0 && device.getMobilePositionSubmissionInterval() <= 0) {
            device.setMobilePositionSubmissionInterval(5);
         }
         deviceService.updateCustomDevice(device);
      }
   }