feat(bpm): 新增排除工作组部门的用户部门名查询接口

- 新增 getNotWorkGroupDepartNamesByUsername,过滤 depart_type='4' 的工作组
- SQL 改为只查 depart_name,不再返回 SysDepart 实体,消除无效字段查询和循环转换
- 已有 getDepartNamesByUsername 同步优化为 name-only 查询
- ActTaskController 节点查询切换至新接口,排除工作组部门

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-07-13 14:27:21 +08:00
co-authored by Claude Opus 4.7
parent cf0b35e8eb
commit 4f79d04096
7 changed files with 66 additions and 9 deletions
@@ -124,6 +124,13 @@ public interface ISysBaseAPI extends CommonAPI {
*/
List<String> getDepartNamesByUsername(String username);
/**
* 9通过用户账号查询部门 name
* @param username
* @return 部门 name
*/
List<String> getNotWorkGroupDepartNamesByUsername(String username);
/** 11查询所有的父级字典,按照create_time排序