Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
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
王琮
entrance_api
Commits
32326660
Commit
32326660
authored
Dec 12, 2022
by
罗可心
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务 添加信息闸机
parent
cb16f965
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
Attendance.java
...in/java/org/rcisoft/sys/attendance/entity/Attendance.java
+5
-0
AttendanceSyncSchedule.java
...isoft/sys/attendance/schedule/AttendanceSyncSchedule.java
+2
-0
AttendanceServiceImpl.java
...ft/sys/attendance/service/impl/AttendanceServiceImpl.java
+2
-0
AttendanceSyncMapper.xml
src/main/resources/mapper/AttendanceSyncMapper.xml
+4
-0
No files found.
src/main/java/org/rcisoft/sys/attendance/entity/Attendance.java
View file @
32326660
...
...
@@ -62,4 +62,9 @@ public class Attendance {
private
Integer
pageSize
;
// 排序方式
private
Integer
sort
;
// 上班打卡设备
private
String
workDeviceName
;
// 下班打卡设备
private
String
officeDeviceName
;
}
src/main/java/org/rcisoft/sys/attendance/schedule/AttendanceSyncSchedule.java
View file @
32326660
...
...
@@ -49,6 +49,8 @@ public class AttendanceSyncSchedule {
attendanceSync
.
setPositionLabel
(
all
.
get
(
i
).
getPositionName
());
attendanceSync
.
setWorkHours
(
all
.
get
(
i
).
getWorkShift
());
attendanceSync
.
setOffHours
(
all
.
get
(
i
).
getClosingTime
());
attendanceSync
.
setWorkDeviceName
(
all
.
get
(
i
).
getWorkDeviceName
());
attendanceSync
.
setOffDeviceName
(
all
.
get
(
i
).
getOfficeDeviceName
());
attendanceSync
.
setDateOfAttendance
(
all
.
get
(
i
).
getKqDate
());
attendanceSync
.
setTimeOnJob
(
all
.
get
(
i
).
getDuration
());
attendanceSync
.
setNltBz
(
sysUser
.
getNltBz
());
...
...
src/main/java/org/rcisoft/sys/attendance/service/impl/AttendanceServiceImpl.java
View file @
32326660
...
...
@@ -93,7 +93,9 @@ public class AttendanceServiceImpl implements AttendanceService {
if
(
begin
.
compareTo
(
end
)
>
0
)
return
null
;
attendance
.
setWorkShift
(
sdf
.
format
(
work
.
getCrossTime
()));
attendance
.
setWorkDeviceName
(
work
.
getDeviceName
());
attendance
.
setClosingTime
(
sdf
.
format
(
out
.
getCrossTime
()));
attendance
.
setOfficeDeviceName
(
out
.
getDeviceName
());
}
else
return
null
;
Date
beginTime
=
null
;
...
...
src/main/resources/mapper/AttendanceSyncMapper.xml
View file @
32326660
...
...
@@ -86,6 +86,8 @@
<if
test=
"entity.positionLabel != null"
>
position_label ,
</if>
<if
test=
"entity.workHours != null"
>
work_hours ,
</if>
<if
test=
"entity.offHours != null"
>
off_hours ,
</if>
<if
test=
"entity.workDeviceName != null"
>
work_device_name ,
</if>
<if
test=
"entity.offDeviceName != null"
>
off_device_name ,
</if>
<if
test=
"entity.dateOfAttendance != null"
>
date_of_attendance ,
</if>
<if
test=
"entity.timeOnJob != null"
>
time_on_job ,
</if>
<if
test=
"entity.nltBz != null"
>
nlt_bz ,
</if>
...
...
@@ -105,6 +107,8 @@
<if
test=
"entity.positionLabel != null"
>
#{entity.positionLabel},
</if>
<if
test=
"entity.workHours != null"
>
#{entity.workHours},
</if>
<if
test=
"entity.offHours != null"
>
#{entity.offHours},
</if>
<if
test=
"entity.workDeviceName != null"
>
#{entity.workDeviceName} ,
</if>
<if
test=
"entity.offDeviceName != null"
>
#{entity.offDeviceName} ,
</if>
<if
test=
"entity.dateOfAttendance != null"
>
#{entity.dateOfAttendance},
</if>
<if
test=
"entity.timeOnJob != null"
>
#{entity.timeOnJob},
</if>
<if
test=
"entity.nltBz != null"
>
#{entity.nltBz},
</if>
...
...
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