From 3496700a5ba18be8ca0590a79e21a867782d1ea9 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Mon, 01 Jun 2026 16:56:57 +0800
Subject: [PATCH] 优化
---
ard-modules/ard-modules-work/src/main/java/com/ard/work/device/channel/service/impl/ArdChannelServiceImpl.java | 19 ++-----------------
1 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/ard-modules/ard-modules-work/src/main/java/com/ard/work/device/channel/service/impl/ArdChannelServiceImpl.java b/ard-modules/ard-modules-work/src/main/java/com/ard/work/device/channel/service/impl/ArdChannelServiceImpl.java
index 74ce42a..4f4e03c 100644
--- a/ard-modules/ard-modules-work/src/main/java/com/ard/work/device/channel/service/impl/ArdChannelServiceImpl.java
+++ b/ard-modules/ard-modules-work/src/main/java/com/ard/work/device/channel/service/impl/ArdChannelServiceImpl.java
@@ -1,17 +1,8 @@
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;
@@ -19,9 +10,9 @@
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业务层处理
@@ -34,8 +25,6 @@
public class ArdChannelServiceImpl implements IArdChannelService {
@Resource
private ArdChannelMapper ardChannelMapper;
- @Resource
- private RemoteQsDeviceService remoteQsDeviceService;
@Resource
private RedisService redisService;
@@ -105,11 +94,7 @@
@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);
}
/**
--
Gitblit v1.9.3