refactor(smartfactory): 修改根据 leaderId 查询部门信息的接口- 将 deptApi.getDeptListByLeader 方法替换为 deptApi.getDeptByLeaderId
- 此修改可能提高查询效率,仅获取当前登录用户作为 leader 的部门信息
This commit is contained in:
parent
0703f3d8ef
commit
99b5ff9efc
@ -238,7 +238,7 @@ public class FactoryInfoServiceImpl implements FactoryInfoService {
|
||||
// 如果当前登录用户数据权限 不是查看全部数据
|
||||
if (!deptDataPermission.getAll()) {
|
||||
|
||||
List<DeptRespDTO> deptRespDTO = deptApi.getDeptListByLeader(getLoginUserId()).getCheckedData();
|
||||
List<DeptRespDTO> deptRespDTO = deptApi.getDeptByLeaderId(getLoginUserId()).getCheckedData();
|
||||
|
||||
if (deptRespDTO != null) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user