Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
629384ae
Commit
629384ae
authored
Jun 04, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a196003e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+3
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+17
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
629384ae
...
...
@@ -6,6 +6,7 @@ import com.gic.api.base.commons.Page;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.GicClerkDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.dto.UserLoginLogDTO
;
...
...
@@ -90,4 +91,6 @@ public interface StaffApiService {
void
wxFristAdd
(
String
userJson
,
String
wxEnterpriseId
);
List
<
String
>
listBindClerkUserId
(
String
storeId
);
public
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
629384ae
...
...
@@ -1389,6 +1389,23 @@ public class StaffApiServiceImpl implements StaffApiService {
}
return
userIdList
;
}
@Override
public
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
)
{
List
<
StaffClerkRelationDTO
>
bindList
=
new
ArrayList
<
StaffClerkRelationDTO
>();
List
<
String
>
storeIds
=
new
ArrayList
<
String
>();
storeIds
.
add
(
storeId
);
List
<
String
>
clerkList
=
clerkService
.
getclerkListByStoreIds
(
storeIds
);
List
<
StaffClerkRelationDTO
>
staffRelationList
=
staffClerkRelationService
.
listByClerkIds
(
clerkList
);
Map
<
String
,
StaffClerkRelationDTO
>
clerkIdMap
=
staffRelationList
.
stream
().
filter
(
s
->
s
.
getClerkId
()!=
null
).
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkId
,
s
->
s
));
Set
<
String
>
keySet
=
clerkIdMap
.
keySet
();
for
(
String
clerkId
:
clerkList
)
{
if
(
keySet
.
contains
(
clerkId
)){
bindList
.
add
(
clerkIdMap
.
get
(
clerkId
));
}
}
return
bindList
;
}
// private String getMobile(String phoneNumber,String nationcode){
// String mobile = nationcode + phoneNumber;
...
...
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