|
@@ -349,13 +349,21 @@ public class UserService extends ServiceImpl<UserMapper,UserEntity> {
|
|
|
String ids = "";
|
|
|
if (deptId != null)
|
|
|
ids = orgMapper.findParentOrgByChildId(deptId);
|
|
|
+ //查询公司
|
|
|
+ String comps = orgMapper.findParentOrgByChildId(compayId);
|
|
|
+ String[] compids = comps.split(",");
|
|
|
+ List<Long> compList = new ArrayList<>();
|
|
|
+ for (String item : compids) {
|
|
|
+ if (!item.equals(compayId.toString()))
|
|
|
+ compList.add(Long.valueOf(item));
|
|
|
+ }
|
|
|
+
|
|
|
List<Long> idList = new ArrayList<>();
|
|
|
String[] as = ids.split(",");
|
|
|
- for(String item : as)
|
|
|
- {
|
|
|
+ for (String item : as) {
|
|
|
idList.add(Long.valueOf(item));
|
|
|
}
|
|
|
- List<UserEntity> list = userMapper.findUserIdsForOrg(compayId, deptId, idList);
|
|
|
+ List<UserEntity> list = userMapper.findUserIdsForOrg(compayId, deptId, idList,compList);
|
|
|
return list;
|
|
|
}
|
|
|
public List<Integer> findUserIdsByPermissonOrg(String tenantId,Integer companyOrgId,Integer deptOrgId){
|