Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
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
胡园园
yanxuan-qc-change-system
Commits
76690757
Commit
76690757
authored
Dec 16, 2022
by
zcwang2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:上级主管查询测试
parent
e8e2df9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+9
-2
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+7
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
76690757
...
@@ -25,6 +25,7 @@ import java.util.stream.Collectors;
...
@@ -25,6 +25,7 @@ import java.util.stream.Collectors;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.rsp.leaderChain
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.apache.poi.ss.usermodel.Workbook
;
...
@@ -366,7 +367,7 @@ public class ChangeFlowBiz {
...
@@ -366,7 +367,7 @@ public class ChangeFlowBiz {
return
flowId
;
return
flowId
;
}
}
p
rivate
List
<
String
>
getDepartmentInfo
(
List
<
String
>
receiver
)
{
p
ublic
List
<
String
>
getDepartmentInfo
(
List
<
String
>
receiver
)
{
IusDepartmentReq
iusDepartmentReq
=
new
IusDepartmentReq
();
IusDepartmentReq
iusDepartmentReq
=
new
IusDepartmentReq
();
iusDepartmentReq
.
setHasOrgPos
(
true
);
iusDepartmentReq
.
setHasOrgPos
(
true
);
iusDepartmentReq
.
setIcac
(
true
);
iusDepartmentReq
.
setIcac
(
true
);
...
@@ -375,8 +376,14 @@ public class ChangeFlowBiz {
...
@@ -375,8 +376,14 @@ public class ChangeFlowBiz {
ArrayList
<
List
<
SecondaryDepartments
>>
secondaryDepartments
=
new
ArrayList
<>(
map
.
values
());
ArrayList
<
List
<
SecondaryDepartments
>>
secondaryDepartments
=
new
ArrayList
<>(
map
.
values
());
List
<
String
>
ccList
=
new
ArrayList
<>();
List
<
String
>
ccList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
secondaryDepartments
))
{
if
(
CollectionUtils
.
isNotEmpty
(
secondaryDepartments
))
{
// 外层循环是不同人,内层循环是相同人不同部门
for
(
List
<
SecondaryDepartments
>
secondaryDepartment
:
secondaryDepartments
)
{
for
(
List
<
SecondaryDepartments
>
secondaryDepartment
:
secondaryDepartments
)
{
ccList
.
addAll
(
secondaryDepartment
.
stream
().
map
(
SecondaryDepartments:
:
getUid
).
collect
(
Collectors
.
toList
()));
for
(
SecondaryDepartments
dep
:
secondaryDepartment
)
{
List
<
leaderChain
>
leaderChainList
=
dep
.
getLeaderChainList
();
if
(
CollectionUtils
.
isNotEmpty
(
leaderChainList
))
{
ccList
.
add
(
leaderChainList
.
get
(
leaderChainList
.
size
()-
1
).
getUid
());
}
}
}
}
}
}
return
ccList
;
return
ccList
;
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
View file @
76690757
...
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.GetMapping;
...
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -122,4 +123,9 @@ public class TestController {
...
@@ -122,4 +123,9 @@ public class TestController {
emailTemplateEnum
,
JSON
.
parseObject
(
mapToJson
,
Map
.
class
));
emailTemplateEnum
,
JSON
.
parseObject
(
mapToJson
,
Map
.
class
));
}
}
}
}
@GetMapping
(
"/ccList"
)
public
AjaxResult
<
List
<
String
>>
ccList
(
@RequestParam
List
<
String
>
receiver
){
return
AjaxResult
.
success
(
changeFlowBiz
.
getDepartmentInfo
(
receiver
));
}
}
}
\ No newline at end of file
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