Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-supervisor
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 9a79d868
authored
Mar 19, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]驻店员工逻辑调整
1 parent
4ef68d20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorEmployeeTrainingInfoService.java
rpc-dj-supervisor/src/test/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardServiceTest.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
View file @
9a79d86
This diff is collapsed.
Click to expand it.
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorEmployeeTrainingInfoService.java
View file @
9a79d86
...
...
@@ -54,16 +54,17 @@ public class SupervisorEmployeeTrainingInfoService {
}
// 2、根据督导uuid和业务类型,获取督导下所有门店及员工信息
Map
<
Integer
,
List
<
EmployeeRanking
>>
storeEmployeeMap
=
supervisorDashboardService
.
getSupervisorStoreAndEmployeePhoneList
(
supervisorUUID
,
request
.
getBusinessType
());
if
(
CollectionUtils
.
isEmpty
(
storeEmployeeMap
))
{
List
<
Integer
>
merchantIds
=
supervisorDashboardService
.
getSupervisorMerchants
(
supervisorUUID
);
List
<
EmployeeRanking
>
supervisorStoreAndEmployeePhoneList
=
supervisorDashboardService
.
getSupervisorStoreAndEmployeePhoneList
(
supervisorUUID
,
merchantIds
);
if
(
CollectionUtils
.
isEmpty
(
supervisorStoreAndEmployeePhoneList
))
{
log
.
warn
(
"督导下没有员工信息,supervisorPhone={}"
,
request
.
getSupervisorPhone
());
return
new
ArrayList
<>();
}
// 3、提取全部员工手机号(去重)
List
<
String
>
phoneList
=
storeEmployeeMap
.
values
().
stream
()
.
flatMap
(
List:
:
stream
)
List
<
String
>
phoneList
=
supervisorStoreAndEmployeePhoneList
.
stream
()
.
map
(
EmployeeRanking:
:
getEmployeePhone
)
.
filter
(
phone
->
phone
!=
null
&&
!
phone
.
isEmpty
())
.
distinct
()
...
...
rpc-dj-supervisor/src/test/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardServiceTest.java
View file @
9a79d86
...
...
@@ -21,7 +21,6 @@ public class SupervisorDashboardServiceTest extends BaseServiceTest {
@Test
public
void
testGetSupervisorStoreAndEmployeePhoneList
()
{
Map
<
Integer
,
List
<
EmployeeRanking
>>
employeePhoneList
=
supervisorDashboardService
.
getSupervisorStoreAndEmployeePhoneList
(
"63c121922cba4956b2aac3f21dacd92f"
,
null
);
TestCase
.
assertNotNull
(
employeePhoneList
);
supervisorDashboardService
.
getSupervisorStoreAndEmployeePhoneList
(
"63c121922cba4956b2aac3f21dacd92f"
,
null
);
}
}
\ No newline at end of file
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