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
aaf96b7b
Commit
aaf96b7b
authored
Jun 29, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
插入绑定日志
parent
3d3dc1ef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+3
-8
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+8
-3
StaffDepartmentRelatedMapper.xml
...rc/main/resources/mapper/StaffDepartmentRelatedMapper.xml
+1
-1
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+2
-2
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
aaf96b7b
...
...
@@ -161,12 +161,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
return
uuid
;
}
@Override
public
int
cleanStaffClerk
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
)
{
List
<
String
>
delStaffIds
=
staffService
.
listDelUserStaffId
(
wxEnterpriseId
,
staffIds
);
if
(
CollectionUtils
.
isEmpty
(
delStaffIds
))
{
logger
.
info
(
"没有要删除的成员:{}"
,
wxEnterpriseId
);
return
0
;
}
public
int
cleanStaffClerk
(
String
wxEnterpriseId
,
List
<
String
>
delStaffIds
)
{
delStaffIds
.
forEach
(
staffId
->{
List
<
StaffClerkRelationDTO
>
relationDTOS
=
listBindCodeByStaffId
(
null
,
staffId
);
if
(
CollectionUtils
.
isNotEmpty
(
relationDTOS
))
{
...
...
@@ -175,8 +170,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
});
}
});
int
ret
=
mapper
.
cleanStaffDepart
(
wxEnterpriseId
,
s
taffIds
);
externalClerkRelatedService
.
cleanStaffRelated
(
wxEnterpriseId
,
s
taffIds
);
int
ret
=
mapper
.
cleanStaffDepart
(
wxEnterpriseId
,
delS
taffIds
);
externalClerkRelatedService
.
cleanStaffRelated
(
wxEnterpriseId
,
delS
taffIds
);
return
ret
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
aaf96b7b
...
...
@@ -574,9 +574,14 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
List
<
StaffDTO
>
retLists
=
staffService
.
listByUserIdsAndWxEnterpriseId
(
clerkIds
,
wxEnterpriseId
);
List
<
String
>
staffIds
=
retLists
.
stream
().
map
(
StaffDTO:
:
getStaffId
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
staffIds
))
{
staffClerkRelationService
.
cleanStaffClerk
(
wxEnterpriseId
,
staffIds
);
staffService
.
cleanStaff
(
wxEnterpriseId
,
staffIds
);
staffDepartmentRelatedService
.
cleanStaffDepartment
(
wxEnterpriseId
,
staffIds
);
List
<
String
>
delStaffIds
=
staffService
.
listDelUserStaffId
(
wxEnterpriseId
,
staffIds
);
if
(
CollectionUtils
.
isEmpty
(
delStaffIds
))
{
logger
.
info
(
"没有要删除的用户:{}--{}"
,
wxEnterpriseId
,
taskId
);
}
else
{
staffClerkRelationService
.
cleanStaffClerk
(
wxEnterpriseId
,
delStaffIds
);
staffService
.
cleanStaff
(
wxEnterpriseId
,
delStaffIds
);
staffDepartmentRelatedService
.
cleanStaffDepartment
(
wxEnterpriseId
,
delStaffIds
);
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffDepartmentRelatedMapper.xml
View file @
aaf96b7b
...
...
@@ -332,7 +332,7 @@
update_time = now()
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
and staff_id
not
in
and staff_id in
<foreach
collection=
"staffIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
aaf96b7b
...
...
@@ -347,8 +347,8 @@
status_flag = 0,
update_time = now()
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR} and status_flag = 1
and super_manager_flag is null
and staff_id
not
in
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR} and status_flag = 1
and staff_id in
<foreach
collection=
"staffIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
aaf96b7b
...
...
@@ -277,7 +277,7 @@
status_flag = 0,
update_time = now()
where wx_enterprise_id = #{wxEnterpriseId} and status_flag = 1 and
staff_id
not
in
staff_id in
<foreach
collection=
"staffIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
...
...
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