From 1c0e9484d0f2e59bdb06f2bf9be9450645fc4d8d Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Thu, 23 Oct 2025 16:03:37 +0800
Subject: [PATCH] 生产模式不允许多端同时登录

---
 ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
index 0f2312d..e11e1e5 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
@@ -121,6 +121,7 @@
 
     /**
      * Get the binding devices list
+     * 获取绑定设备列表
      *
      * @param page
      * @param pageSize
@@ -131,8 +132,9 @@
     public ResponseResult<PaginationData<DeviceDTO>> getBoundDevicesWithDomain(Integer domain,
                                                                                @RequestParam(defaultValue = "1") Long page,
                                                                                @RequestParam(value = "page_size",
-                                                                                       defaultValue = "50") Long pageSize) {
-        PaginationData<DeviceDTO> devices = deviceService.getBoundDevicesWithDomain(page, pageSize, domain);
+                                                                                       defaultValue = "50") Long pageSize,
+                                                                               @RequestParam(required = false) Long deptId) {
+        PaginationData<DeviceDTO> devices = deviceService.getBoundDevicesWithDomain(page, pageSize, domain, deptId);
 
         return ResponseResult.success(devices);
     }

--
Gitblit v1.9.3