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
37da04c5
Commit
37da04c5
authored
Sep 04, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
离职继承bug修复
parent
38233505
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
HandoverService.java
...om/gic/haoban/manage/service/service/HandoverService.java
+1
-1
HandoverServiceImpl.java
...oban/manage/service/service/impl/HandoverServiceImpl.java
+21
-1
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+3
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/HandoverService.java
View file @
37da04c5
...
...
@@ -120,5 +120,5 @@ public interface HandoverService {
* @return
*/
public
List
<
HandoverStaffFriendCountDTO
>
listFriendCountByWxStaffIds
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
);
TabHandoverStaff
get
HandoverStaff
(
String
wxEnterpriseId
,
String
wxUserId
);
Boolean
filter
HandoverStaff
(
String
wxEnterpriseId
,
String
wxUserId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/HandoverServiceImpl.java
View file @
37da04c5
...
...
@@ -176,7 +176,6 @@ public class HandoverServiceImpl implements HandoverService {
staffClerkRelationService
.
cleanStaffClerk
(
handoverStaff
.
getWxEnterpriseId
(),
staffIds
);
}
}
@Override
public
TabHandoverStaff
getHandoverStaff
(
String
wxEnterpriseId
,
String
wxUserId
)
{
TabHaobanStaff
haobanStaff
=
staffMapper
.
getNoStatusByWxUserIds
(
wxEnterpriseId
,
wxUserId
);
if
(
null
==
haobanStaff
)
{
...
...
@@ -340,4 +339,25 @@ public class HandoverServiceImpl implements HandoverService {
List
<
HandoverStaffFriendCountDTO
>
ret
=
handoverExternalMapper
.
listPreCountByStaffIds
(
wxEnterpriseId
,
staffIds
);
return
ret
;
}
@Override
public
Boolean
filterHandoverStaff
(
String
wxEnterpriseId
,
String
wxUserId
)
{
TabHaobanStaff
haobanStaff
=
staffMapper
.
getNoStatusByWxUserIds
(
wxEnterpriseId
,
wxUserId
);
if
(
null
==
haobanStaff
)
{
logger
.
info
(
"对应的staff不存在:{}"
,
wxUserId
);
return
false
;
}
TabHandoverStaff
handoverStaff
=
handoverStaffMapper
.
getByStaffId
(
wxEnterpriseId
,
haobanStaff
.
getStaffId
());
if
(
null
!=
handoverStaff
)
{
logger
.
info
(
"对应的handoverStaff已存在:{}"
,
haobanStaff
.
getStaffId
());
return
false
;
}
TabHaobanClerkMainStoreRelated
clerkMainStoreRelated
=
clerkMainStoreRelatedMapper
.
getLastNoStatusByStaffId
(
wxEnterpriseId
,
haobanStaff
.
getStaffId
());
if
(
null
==
clerkMainStoreRelated
)
{
logger
.
info
(
"没有主门店:{}"
,
haobanStaff
.
getStaffId
());
// 需要过滤 没有主门店的人 不需要执行
return
false
;
}
return
true
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
37da04c5
...
...
@@ -112,14 +112,13 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
//这里过滤staff成员id,避免ret数组过大
ret
.
addAll
(
infoList
);
//根据handoverUserid去重
/*
List<QywxUnassignedInfoDTO> collect = infoList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(QywxUnassignedInfoDTO::getHandoverUserid))), ArrayList::new));
List
<
QywxUnassignedInfoDTO
>
collect
=
infoList
.
stream
().
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparing
(
QywxUnassignedInfoDTO:
:
getHandoverUserid
))),
ArrayList:
:
new
));
for
(
QywxUnassignedInfoDTO
dto
:
collect
){
String
handoverUserid
=
dto
.
getHandoverUserid
();
TabHandoverStaff handoverStaff = handoverService.getHandoverStaff(wxEnterpriseId, handoverUserid);
if (null == handoverStaff) {
if
(
handoverService
.
filterHandoverStaff
(
wxEnterpriseId
,
handoverUserid
))
{
ret
=
ret
.
stream
().
filter
(
d
->
!
d
.
getHandoverUserid
().
equals
(
handoverUserid
)).
collect
(
Collectors
.
toList
());
}
}
*/
}
}
}
while
(
StringUtils
.
isNotBlank
(
cursor
)
&&
unassignedListDTO
.
getErrcode
()
==
0
);
if
(
CollectionUtils
.
isEmpty
(
ret
))
{
...
...
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