Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
bc54dbb7
Commit
bc54dbb7
authored
Jun 09, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分逻辑
parent
8cdf50c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
...in/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
+5
-9
attendance-performance-manager/src/main/resources/sqlmap/module/dept/DeptMapperExt.xml
...r/src/main/resources/sqlmap/module/dept/DeptMapperExt.xml
+15
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
View file @
bc54dbb7
...
@@ -55,26 +55,20 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
...
@@ -55,26 +55,20 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
@Autowired
@Autowired
private
StaffService
staffService
;
private
StaffService
staffService
;
@Autowired
private
StaffDao
staffDao
;
@Autowired
@Autowired
private
DeptDao
deptDao
;
private
DeptDao
deptDao
;
@Autowired
@Autowired
private
DeptService
deptService
;
private
DeptService
deptService
;
@Autowired
@Autowired
private
StaffService
service
;
private
StaffService
service
;
@Autowired
private
AttendanceStatDao
attendanceStatDao
;
@Autowired
@Autowired
private
AttendanceStatService
attendanceStatService
;
private
AttendanceStatService
attendanceStatService
;
@Autowired
private
AttendanceVacationBalanceDao
balanceDao
;
@Autowired
@Autowired
private
AttendanceVacationBalanceService
balanceService
;
private
AttendanceVacationBalanceService
balanceService
;
...
@@ -223,8 +217,10 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
...
@@ -223,8 +217,10 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
List
<
OrgInfo
>
orgInfoList
=
orgRest
.
getData
().
getList
();
List
<
OrgInfo
>
orgInfoList
=
orgRest
.
getData
().
getList
();
for
(
OrgInfo
orgInfo
:
orgInfoList
)
{
for
(
OrgInfo
orgInfo
:
orgInfoList
)
{
//查询数据库信息
//查询数据库信息
DeptEntity
deptEntity
=
deptDao
.
queryDept
(
orgInfo
.
getOrgIndexCode
());
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
deptCode
(
orgInfo
.
getOrgIndexCode
()));
DeptEntity
deptEntityParent
=
deptDao
.
queryDeptParient
(
orgInfo
.
getParentOrgIndexCode
());
DeptEntity
deptEntityParent
=
deptService
.
selectOne
(
new
DeptQuery
().
deptCode
(
orgInfo
.
getParentOrgIndexCode
()));
//DeptEntity deptEntityParent = deptDao.queryDeptParient(orgInfo.getParentOrgIndexCode());
//新增
//新增
if
(
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
ObjectUtils
.
isEmpty
(
deptEntity
))
{
deptEntity
=
new
DeptEntity
();
deptEntity
=
new
DeptEntity
();
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/dept/DeptMapperExt.xml
0 → 100644
View file @
bc54dbb7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mortals.xhx.module.dept.dao.ibatis.DeptDaoImpl"
>
<select
id=
"queryDept"
resultType=
"com.mortals.xhx.module.dept.model.DeptEntity"
>
select * from mortals_xhx_dept where deptCode = #{deptCode}
</select>
<select
id=
"queryDeptParient"
resultType=
"com.mortals.xhx.module.dept.model.DeptEntity"
>
select * from mortals_xhx_dept where deptCode = #{parentCode}
</select>
<select
id=
"queryDeptParentId"
resultType=
"integer"
>
select parentId from mortals_xhx_dept where deptId = #{deptId}
</select>
</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