Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-usercenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9e6b5e2b
authored
Mar 30, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户返回下级全部组织id接口
1 parent
8829b5f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
src/main/java/cn/com/glsx/shield/modules/service/OrganizationService.java
src/main/resources/mapper/UserMapper.xml
src/main/java/cn/com/glsx/shield/modules/service/OrganizationService.java
View file @
9e6b5e2
...
...
@@ -20,6 +20,7 @@ import cn.com.glsx.shield.modules.model.view.DepartmentDTO;
import
cn.com.glsx.shield.modules.service.permissionStrategy.PermissionStrategy
;
import
cn.com.glsx.usercenter.api.dto.tree.OrgModel
;
import
cn.com.glsx.usercenter.api.dto.tree.OrgTreeModel
;
import
cn.hutool.json.JSONUtil
;
import
com.glsx.plat.common.model.TreeModel
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.common.utils.TreeModelUtil
;
...
...
@@ -250,6 +251,8 @@ public class OrganizationService {
}
public
List
orgTree
(
OrgTreeSearch
search
)
{
log
.
info
(
"OrgTree OrgTreeSearch:{}"
,
JSONUtil
.
toJsonStr
(
search
));
List
<?
extends
TreeModel
>
treeModels
=
this
.
getPermissionStrategy
().
orgTree
(
search
);
treeModels
.
sort
(
Comparator
.
comparing
(
TreeModel:
:
getOrder
));
...
...
src/main/resources/mapper/UserMapper.xml
View file @
9e6b5e2
...
...
@@ -108,7 +108,10 @@
tu.id orderNum
from t_user tu
where del_flag = 0
and department_id = #{departmentId}
and department_id in
<foreach
collection=
"departmentIds"
item=
"departmentId"
open=
"("
close=
")"
separator=
","
>
#{departmentId}
</foreach>
<if
test=
"userIds != null and userIds.size() > 0"
>
and tu.id in
<foreach
collection=
"userIds"
item=
"item"
open=
"("
close=
")"
separator=
","
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment