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
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
haoban3.0
haoban-manage3.0
Commits
e042e6f9
Commit
e042e6f9
authored
May 09, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加gic品牌名称字段
parent
ba494dcd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
+24
-1
StaffDTO.java
...src/main/java/com/gic/haoban/manage/api/dto/StaffDTO.java
+12
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+12
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffDTO.java
View file @
e042e6f9
...
@@ -127,6 +127,18 @@ public class StaffDTO implements Serializable {
...
@@ -127,6 +127,18 @@ public class StaffDTO implements Serializable {
* 企微激活码
* 企微激活码
*/
*/
private
String
activeCode
;
private
String
activeCode
;
/**
* gic品牌名称
*/
private
List
<
String
>
enterpriseNameList
;
public
List
<
String
>
getEnterpriseNameList
()
{
return
enterpriseNameList
;
}
public
void
setEnterpriseNameList
(
List
<
String
>
enterpriseNameList
)
{
this
.
enterpriseNameList
=
enterpriseNameList
;
}
public
String
getActiveCode
()
{
public
String
getActiveCode
()
{
return
activeCode
;
return
activeCode
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
e042e6f9
...
@@ -107,6 +107,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -107,6 +107,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private
QywxOrderApiService
qywxOrderApiService
;
private
QywxOrderApiService
qywxOrderApiService
;
@Autowired
@Autowired
private
GroupChatService
groupChatService
;
private
GroupChatService
groupChatService
;
@Autowired
private
WxEnterpriseRelatedService
wxEnterpriseRelatedService
;
@Override
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
public
StaffDTO
selectById
(
String
staffId
)
{
...
@@ -154,8 +156,17 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -154,8 +156,17 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
Set
<
String
>
staffIdList
=
staffDTOList
.
stream
().
map
(
dto
->
dto
.
getStaffId
()).
collect
(
Collectors
.
toSet
());
Set
<
String
>
staffIdList
=
staffDTOList
.
stream
().
map
(
dto
->
dto
.
getStaffId
()).
collect
(
Collectors
.
toSet
());
List
<
String
>
relationIdList
=
this
.
staffClerkRelationService
.
listRelationsStaffId
(
staffIdList
);
List
<
String
>
relationIdList
=
this
.
staffClerkRelationService
.
listRelationsStaffId
(
staffIdList
);
//已关联的成员需要查询关联的品牌名称
List
<
TabHaobanWxEnterpriseRelated
>
list
=
wxEnterpriseRelatedService
.
getByWxEnterpriseId
(
wxEnterpriseId
);
List
<
String
>
enterpriseNameSet
=
list
.
stream
().
map
(
dto
->
dto
.
getEnterpriseName
()).
collect
(
Collectors
.
toList
());
staffDTOList
.
forEach
(
one
->
{
staffDTOList
.
forEach
(
one
->
{
one
.
setRelationFlag
(
relationIdList
.
contains
(
one
.
getStaffId
())
?
1
:
0
);
if
(
relationIdList
.
contains
(
one
.
getStaffId
())){
one
.
setRelationFlag
(
1
);
one
.
setEnterpriseNameList
(
enterpriseNameSet
);
}
else
{
one
.
setRelationFlag
(
0
);
}
});
});
return
page
;
return
page
;
}
}
...
...
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