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
c05bec7a
Commit
c05bec7a
authored
Jun 01, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
cae73c9d
c03a252c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
1 deletions
+30
-1
StaffDepartmentRelatedMapper.java
...nage/service/dao/mapper/StaffDepartmentRelatedMapper.java
+2
-0
StaffDepartmentRelatedService.java
...manage/service/service/StaffDepartmentRelatedService.java
+8
-0
StaffDepartmentRelatedServiceImpl.java
...rvice/service/impl/StaffDepartmentRelatedServiceImpl.java
+4
-1
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+4
-0
StaffDepartmentRelatedMapper.xml
...rc/main/resources/mapper/StaffDepartmentRelatedMapper.xml
+12
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffDepartmentRelatedMapper.java
View file @
c05bec7a
...
...
@@ -52,4 +52,5 @@ public interface StaffDepartmentRelatedMapper {
List
<
TabHaobanStaffDepartmentRelated
>
listStaffDepartmentByStaffIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
int
cleanStaffDepartment
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffDepartmentRelatedService.java
View file @
c05bec7a
...
...
@@ -30,5 +30,13 @@ public interface StaffDepartmentRelatedService {
StaffDepartmentRelatedDTO
getById
(
String
staffDepartmentStaffRelatedId
);
/**
* 清空stafff
* @param wxEnterpriseId
* @param staffIds
* @return
*/
public
int
cleanStaffDepartment
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffDepartmentRelatedServiceImpl.java
View file @
c05bec7a
...
...
@@ -89,5 +89,8 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
return
EntityUtil
.
changeEntityByJSON
(
StaffDepartmentRelatedDTO
.
class
,
mapper
.
getById
(
staffDepartmentStaffRelatedId
));
}
@Override
public
int
cleanStaffDepartment
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
)
{
return
0
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
c05bec7a
...
...
@@ -80,6 +80,9 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
private
StaffService
staffService
;
@Autowired
private
StaffDepartmentRelatedService
staffDepartmentRelatedService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
...
...
@@ -550,6 +553,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
if
(
CollectionUtils
.
isNotEmpty
(
staffIds
))
{
staffClerkRelationService
.
cleanStaffClerk
(
wxEnterpriseId
,
staffIds
);
staffService
.
cleanStaff
(
wxEnterpriseId
,
staffIds
);
staffDepartmentRelatedService
.
cleanStaffDepartment
(
wxEnterpriseId
,
staffIds
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffDepartmentRelatedMapper.xml
View file @
c05bec7a
...
...
@@ -309,4 +309,15 @@
and status_flag = 1
</select>
<update
id=
"cleanStaffDepartment"
>
update tab_haoban_staff_department_related
set
status_flag = 0
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
and staff_id not in
<foreach
collection=
"staffIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</update>
</mapper>
\ No newline at end of file
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