From d32978347568fe2a2822e2c988864695f0b47a92 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Sat, 01 Nov 2025 12:30:42 +0800
Subject: [PATCH] 2025-11-1 zwy 对机场设备列表、绑定设备列表增加权限配置,新增DataScopeAspectPlus切面文件适配MyBatis-Plus。

---
 ard-sample/src/main/java/com/ard/sample/manage/service/IDeviceService.java |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/ard-sample/src/main/java/com/ard/sample/manage/service/IDeviceService.java b/ard-sample/src/main/java/com/ard/sample/manage/service/IDeviceService.java
index 659c9ff..f8123a1 100644
--- a/ard-sample/src/main/java/com/ard/sample/manage/service/IDeviceService.java
+++ b/ard-sample/src/main/java/com/ard/sample/manage/service/IDeviceService.java
@@ -8,10 +8,12 @@
 import com.ard.sample.manage.model.dto.DeviceDTO;
 import com.ard.sample.manage.model.dto.DeviceFirmwareUpgradeDTO;
 import com.ard.sample.manage.model.dto.TopologyDeviceDTO;
+import com.ard.sample.manage.model.entity.DeviceEntity;
 import com.ard.sample.manage.model.enums.DeviceSetPropertyEnum;
 import com.ard.sample.manage.model.param.DeviceQueryParam;
 import com.ard.sample.manage.model.receiver.FirmwareVersionReceiver;
 import com.ard.sample.manage.model.receiver.StatusGatewayReceiver;
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
 import com.fasterxml.jackson.databind.JsonNode;
 import org.springframework.messaging.Message;
 import org.springframework.messaging.MessageHeaders;
@@ -102,6 +104,16 @@
     void pushDeviceOnlineTopo(Collection<ConcurrentWebSocketSession> sessions, String sn, String gatewaySn);
 
     /**
+     * 根据部门权限获取机场列表
+     * */
+    List<DeviceDTO> getDockList();
+
+    void spliceDeviceTopoPer(DeviceDTO gateway);
+
+//    @DataScope(deptAlias = "d")
+    List<DeviceDTO> getDockListByParams(DeviceQueryParam param);
+
+    /**
      * Query the information of the device according to the sn of the device.
      * @param sn device sn
      * @return
@@ -145,6 +157,8 @@
      */
     Boolean updateDevice(DeviceDTO deviceDTO);
 
+    Boolean updateWorkType(String sn, Long workType);
+
     /**
      * Bind devices to organizations and people.
      * @param device
@@ -176,7 +190,7 @@
      * @param domain
      * @return
      */
-    PaginationData<DeviceDTO> getBoundDevicesWithDomain(Long page, Long pageSize, Integer domain);
+    PaginationData<DeviceDTO> getBoundDevicesWithDomain(Long page, Long pageSize, Integer domain, Long deptId);
 
     /**
      * Unbind device base on device's sn.
@@ -226,4 +240,7 @@
      * @return
      */
     Boolean checkDeviceOnline(String sn);
+
+
+//    public List<DeviceEntity> selectList(Wrapper<DeviceEntity> queryWrapper);
 }
\ No newline at end of file

--
Gitblit v1.9.3