Merge branch 'ageerle:main' into main

This commit is contained in:
HHANG
2025-07-11 10:32:12 +08:00
committed by GitHub
5 changed files with 22 additions and 7 deletions

View File

@@ -63,7 +63,7 @@
| 项目介绍 | GitHub 仓库 | Gitee 仓库 |
|:--------:|:----------:|:----------:|
| 前端简化版 | [ruoyi-element-ai](https://github.com/element-plus-x/ruoyi-element-ai) | [ruoyi-element-ai](https://gitee.com/he-jiayue/ruoyi-element-ai) |
| 智能编码助手 | [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) | - |
@@ -107,7 +107,7 @@
感谢以下优秀的开源项目为本项目提供支持:
- [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) - 基于Spring AI的智能编码助手集成MCP工具协议支持项目分析和代码生成
- [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) - 基于spring-ai-alibaba 的智能编码助手
- [Spring AI](https://spring.io/projects/spring-ai) - Spring 官方 AI 集成框架
- [Langchain4j](https://github.com/langchain4j/langchain4j) - 强大的 Java LLM 开发框架
- [RuoYi-Vue-Plus](https://gitee.com/dromara/RuoYi-Vue-Plus) - 成熟的企业级快速开发框架
@@ -117,7 +117,7 @@
## 🌐 生态伙伴
- [PPIO 派欧云](https://ppinfra.com/user/register?invited_by=P8QTUY&utm_source=github_ruoyi-ai) - 提供高性价比的 GPU 算力和模型 API 服务
- [优云智算](https://passport.compshare.cn/register?referral_code=9iYZFxdKdGyEtuZfW4tWHI) - 万卡规模RTX40系显卡、一键体验各类热门优质镜像
- [优云智算](https://www.compshare.cn/?ytag=GPU_YY-gh_ruoyi) - 万卡RTX40系GPU+海内外主流模型API服务秒级响应按量计费新客免费用
## 💬 社区交流

View File

@@ -65,7 +65,7 @@
| Project Description | GitHub Repository | Gitee Repository |
|:-------------------:|:-----------------:|:----------------:|
| Simplified Frontend | [ruoyi-element-ai](https://github.com/element-plus-x/ruoyi-element-ai) | [ruoyi-element-ai](https://gitee.com/he-jiayue/ruoyi-element-ai) |
| Intelligent Coding Assistant | [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) | - |
## 🛠️ Tech Stack
@@ -108,7 +108,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
Special thanks to these amazing open source projects:
- [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) - Intelligent coding assistant based on Spring AI with MCP protocol integration for project analysis and code generation
- [Spring AI Alibaba Copilot](https://github.com/springaialibaba/spring-ai-alibaba-copilot) - Intelligent coding assistant based on spring-ai-alibaba with MCP protocol integration for project analysis and code generation
- [Spring AI](https://spring.io/projects/spring-ai) - Spring's AI integration framework
- [Langchain4j](https://github.com/langchain4j/langchain4j) - Java LLM framework
- [RuoYi-Vue-Plus](https://gitee.com/dromara/RuoYi-Vue-Plus) - Enterprise development framework

View File

@@ -47,7 +47,7 @@ public class SysDept extends TenantEntity {
/**
* 负责人
*/
private Long leader;
private String leader;
/**
* 联系电话

View File

@@ -160,7 +160,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
userMapper.insert(user);
//新增系统用户后,默认当前用户为部门的负责人
SysDept sd = new SysDept();
sd.setLeader(user.getUserId());
sd.setLeader(String.valueOf(user.getUserId()));
sd.setDeptId(deptId);
deptMapper.updateById(sd);

View File

@@ -322,4 +322,19 @@ public class SysUserController extends BaseController {
return R.ok(trees);
}
/**
* 根据部门ID统计用户数量 /system/user/list/dept/
*
* @param deptId 部门ID
*/
@SaCheckPermission("system:user:list:dept")
@GetMapping("/list/dept/{deptId}")
public R<List<SysUserVo>> countUsersByDept(@PathVariable Long deptId) {
SysUserBo user = new SysUserBo();
user.setDeptId(deptId);
List<SysUserVo> userList = userService.selectUserList(user);
return R.ok(userList);
}
}