From 436a07bcf4e972c5ba156b3c502093b97505d892 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Wed, 25 Sep 2024 10:51:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E8=8E=B7=E5=8F=96=E6=89=80?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/controller/user/SysAccountController.java | 8 ++++++++ .../java/club/joylink/rtss/services/ISysUserService.java | 2 ++ .../java/club/joylink/rtss/services/SysUserService.java | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/src/main/java/club/joylink/rtss/controller/user/SysAccountController.java b/src/main/java/club/joylink/rtss/controller/user/SysAccountController.java index d07990e68..e03c4c64b 100644 --- a/src/main/java/club/joylink/rtss/controller/user/SysAccountController.java +++ b/src/main/java/club/joylink/rtss/controller/user/SysAccountController.java @@ -205,4 +205,12 @@ public class SysAccountController { public List listByIds(@RequestBody List ids) { return iSysUserService.listByIds(ids); } + + /** + * 查询所有用户 + */ + @GetMapping("/list/all") + public List listAll() { + return iSysUserService.listAll(); + } } diff --git a/src/main/java/club/joylink/rtss/services/ISysUserService.java b/src/main/java/club/joylink/rtss/services/ISysUserService.java index 5947f36b9..8b4be7e1a 100644 --- a/src/main/java/club/joylink/rtss/services/ISysUserService.java +++ b/src/main/java/club/joylink/rtss/services/ISysUserService.java @@ -365,4 +365,6 @@ public interface ISysUserService { boolean isSameEmailExist(String email); List listByIds(List ids); + + List listAll(); } diff --git a/src/main/java/club/joylink/rtss/services/SysUserService.java b/src/main/java/club/joylink/rtss/services/SysUserService.java index 88112891d..82d16e17c 100644 --- a/src/main/java/club/joylink/rtss/services/SysUserService.java +++ b/src/main/java/club/joylink/rtss/services/SysUserService.java @@ -1120,6 +1120,12 @@ public class SysUserService implements ISysUserService { return AccountVO.convertFromDB(sysAccounts); } + @Override + public List listAll() { + List sysAccounts = sysAccountDAO.selectByExample(null); + return AccountVO.convertFromDB(sysAccounts); + } + /** * 查询包含组织信息的用户信息 */