refactor(smartfactory): 修改根据 leaderId 查询部门信息的接口- 将 deptApi.getDeptListByLeader 方法替换为 deptApi.getDeptByLeaderId

- 此修改可能提高查询效率,仅获取当前登录用户作为 leader 的部门信息
This commit is contained in:
furongxin 2024-12-13 11:40:23 +08:00
parent 0703f3d8ef
commit 99b5ff9efc

View File

@ -238,7 +238,7 @@ public class FactoryInfoServiceImpl implements FactoryInfoService {
// 如果当前登录用户数据权限 不是查看全部数据 // 如果当前登录用户数据权限 不是查看全部数据
if (!deptDataPermission.getAll()) { if (!deptDataPermission.getAll()) {
List<DeptRespDTO> deptRespDTO = deptApi.getDeptListByLeader(getLoginUserId()).getCheckedData(); List<DeptRespDTO> deptRespDTO = deptApi.getDeptByLeaderId(getLoginUserId()).getCheckedData();
if (deptRespDTO != null) { if (deptRespDTO != null) {