Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
b55d1636
Commit
b55d1636
authored
Jun 24, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
融合调度人员树 查询部门人员列表 修改
parent
97de49b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+18
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
View file @
b55d1636
...
@@ -78,7 +78,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -78,7 +78,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
//获取每个顶层元素的子数据集合
//获取每个顶层元素的子数据集合
for
(
OrgMenuVo
entity
:
resultList
)
{
for
(
OrgMenuVo
entity
:
resultList
)
{
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setLeaf
(
false
);
}
}
return
resultList
;
return
resultList
;
}
}
...
@@ -132,7 +131,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -132,7 +131,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
//子集的间接子对象
//子集的间接子对象
for
(
OrgMenuVo
entity
:
childList
)
{
for
(
OrgMenuVo
entity
:
childList
)
{
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
entity
.
setChildren
(
getSub
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
,
OrgTypeMethodName
));
if
(
entity
.
getChildren
()
!=
null
){
entity
.
setLeaf
(
false
);
}
}
}
//递归退出条件
//递归退出条件
...
@@ -152,8 +153,23 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -152,8 +153,23 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
// 查询出单位基本信息
// 查询出单位基本信息
OrgUsr
company
=
getById
(
ids
.
get
(
i
));
OrgUsr
company
=
getById
(
ids
.
get
(
i
));
resultMap
.
put
(
"id"
,
company
.
getSequenceNbr
());
resultMap
.
put
(
"id"
,
company
.
getSequenceNbr
());
// 上级单位
resultMap
.
put
(
"upUnit"
,
selectUpUnitByParam
(
company
.
getBizOrgCode
()));
resultMap
.
put
(
"upUnit"
,
selectUpUnitByParam
(
company
.
getBizOrgCode
()));
// 当前单位
resultMap
.
put
(
"currentUnit"
,
company
.
getBizOrgName
());
resultMap
.
put
(
"currentUnit"
,
company
.
getBizOrgName
());
// 下级单位
Map
<
String
,
Object
>
downUnitColumnMap
=
new
HashMap
<>();
downUnitColumnMap
.
put
(
"is_delete"
,
CommonConstant
.
IS_DELETE_00
);
downUnitColumnMap
.
put
(
"biz_org_type"
,
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
downUnitColumnMap
.
put
(
"parent_id"
,
company
.
getSequenceNbr
());
QueryWrapper
downUnitWrapper
=
new
QueryWrapper
<
OrgUsr
>();
downUnitWrapper
.
allEq
(
downUnitColumnMap
);
List
<
OrgUsr
>
downList
=
list
(
downUnitWrapper
);
if
(
downList
.
size
()
==
0
){
resultMap
.
put
(
"downUnit"
,
false
);
}
else
{
resultMap
.
put
(
"downUnit"
,
true
);
}
// 人员数量
// 人员数量
Map
<
String
,
Object
>
countPerson
=
new
HashMap
<>();
Map
<
String
,
Object
>
countPerson
=
new
HashMap
<>();
countPerson
.
put
(
"parent_id"
,
company
.
getSequenceNbr
());
countPerson
.
put
(
"parent_id"
,
company
.
getSequenceNbr
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment