| | |
| | | import com.genersoft.iot.vmp.conf.exception.ControllerException; |
| | | import com.genersoft.iot.vmp.conf.security.JwtUtils; |
| | | import com.genersoft.iot.vmp.gb28181.bean.GbStream; |
| | | import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform; |
| | | import com.genersoft.iot.vmp.service.IGbStreamService; |
| | | import com.genersoft.iot.vmp.service.IPlatformService; |
| | | import com.genersoft.iot.vmp.storager.IVideoManagerStorage; |
| | | import com.genersoft.iot.vmp.service.IStreamPushService; |
| | | import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; |
| | | import com.genersoft.iot.vmp.vmanager.gb28181.gbStream.bean.GbStreamParam; |
| | | import com.github.pagehelper.PageInfo; |
| | |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Tag(name = "视频流关联到级联平台") |
| | |
| | | |
| | | @Autowired |
| | | private IGbStreamService gbStreamService; |
| | | |
| | | @Autowired |
| | | private IStreamPushService service; |
| | | |
| | | @Autowired |
| | | private IPlatformService platformService; |
| | |
| | | @ResponseBody |
| | | public void del(@RequestBody GbStreamParam gbStreamParam){ |
| | | |
| | | if (gbStreamParam.getGbStreams() == null || gbStreamParam.getGbStreams().size() == 0) { |
| | | if (gbStreamParam.getGbStreams() == null || gbStreamParam.getGbStreams().isEmpty()) { |
| | | if (gbStreamParam.isAll()) { |
| | | gbStreamService.delAllPlatformInfo(gbStreamParam.getPlatformId(), gbStreamParam.getCatalogId()); |
| | | } |
| | |
| | | @PostMapping(value = "/add") |
| | | @ResponseBody |
| | | public void add(@RequestBody GbStreamParam gbStreamParam){ |
| | | if (gbStreamParam.getGbStreams() == null || gbStreamParam.getGbStreams().size() == 0) { |
| | | if (gbStreamParam.getGbStreams() == null || gbStreamParam.getGbStreams().isEmpty()) { |
| | | if (gbStreamParam.isAll()) { |
| | | List<GbStream> allGBChannels = gbStreamService.getAllGBChannels(gbStreamParam.getPlatformId()); |
| | | gbStreamService.addPlatformInfo(allGBChannels, gbStreamParam.getPlatformId(), gbStreamParam.getCatalogId()); |