| | |
| | | package com.ard.work.device.channel.service.impl; |
| | | |
| | | import com.ard.common.core.constant.CacheConstants; |
| | | import com.ard.common.core.constant.Constants; |
| | | import com.ard.common.core.constant.SecurityConstants; |
| | | import com.ard.common.core.constant.UserConstants; |
| | | import com.ard.common.core.domain.R; |
| | | import com.ard.common.core.enums.LiveStreamType; |
| | | import com.ard.common.core.utils.uuid.IdUtils; |
| | | import com.ard.common.redis.service.RedisService; |
| | | import com.ard.qs.api.RemoteQsDeviceService; |
| | | import com.ard.qs.api.domain.QsDevice; |
| | | import com.ard.work.api.domian.ArdCamera; |
| | | import com.ard.work.api.domian.ArdCameraHepu; |
| | | import com.ard.work.api.domian.ArdChannel; |
| | | import com.ard.work.device.channel.mapper.ArdChannelMapper; |
| | | import com.ard.work.device.channel.service.IArdChannelService; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | | * 通道管理Service业务层处理 |
| | |
| | | public class ArdChannelServiceImpl implements IArdChannelService { |
| | | @Resource |
| | | private ArdChannelMapper ardChannelMapper; |
| | | @Resource |
| | | private RemoteQsDeviceService remoteQsDeviceService; |
| | | @Resource |
| | | private RedisService redisService; |
| | | |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int deleteArdChannelByIds(String[] ids) { |
| | | int i = ardChannelMapper.deleteArdChannelByIds(ids); |
| | | if (i > 0) { |
| | | R<Boolean> delR = remoteQsDeviceService.removeQsDevice(ids, SecurityConstants.INNER); |
| | | } |
| | | return i; |
| | | return ardChannelMapper.deleteArdChannelByIds(ids); |
| | | } |
| | | |
| | | /** |