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); + } + /** * 查询包含组织信息的用户信息 */