Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
4e3d2fc9
Commit
4e3d2fc9
authored
Nov 08, 2023
by
xuwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11.8修改同步钉钉数据
parent
08487965
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
smart-campus/src/main/java/yangtz/cs/liu/dingding/service/impl/dingDept/DdDeptServcieImpl.java
+7
-2
No files found.
smart-campus/src/main/java/yangtz/cs/liu/dingding/service/impl/dingDept/DdDeptServcieImpl.java
View file @
4e3d2fc9
...
...
@@ -219,14 +219,18 @@ public class DdDeptServcieImpl implements IDdDeptService {
@Override
@Transactional
public
String
syncDdDept
()
{
//获取系统所有部门列表
List
<
SysDdDept
>
deptList
=
ddDeptMapper
.
selectDdDeptList
(
new
SysDdDept
());
if
(
deptList
.
size
()
<=
0
){
addDdDept
();
}
else
{
//获取钉钉所有部门列表
List
<
OapiV2DepartmentListsubResponse
.
DeptBaseResponse
>
ddDeptList
=
getDeptList
();
//存放钉钉部门不存在系统库集合
List
<
OapiV2DepartmentListsubResponse
.
DeptBaseResponse
>
ddDeptList1
=
new
ArrayList
<>();
ddDeptList1
.
addAll
(
ddDeptList
);
//获取系统所有部门列表
List
<
SysDdDept
>
deptList
=
ddDeptMapper
.
selectDdDeptList
(
new
SysDdDept
());
//存放钉钉删除了的部门集合
List
<
SysDdDept
>
deptList1
=
new
ArrayList
<>();
deptList1
.
addAll
(
deptList
);
...
...
@@ -311,6 +315,7 @@ public class DdDeptServcieImpl implements IDdDeptService {
}
}
}
}
return
"同步成功"
;
}
...
...
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