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
bfe873b7
Commit
bfe873b7
authored
Oct 20, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加假日数据
parent
b0df6767
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
...odule/attendance/service/work/FixWorkOtherAttendance.java
+12
-12
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+2
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
View file @
bfe873b7
...
...
@@ -84,8 +84,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
Long
weekClassId
=
this
.
getWeekClassId
(
attendanceGroupFixedworkEntity
,
week
);
//log.info("weekClassId:{}", weekClassId);
//weekClassId为-1 则不在考勤
Boolean
checkWorkByHoliday
=
checkWorkByHoliday
();
Boolean
checkHolidayByWorkDay
=
checkHolidayByWorkDay
();
Boolean
checkWorkByHoliday
=
checkWorkByHoliday
(
commonData
.
getDateStr
()
);
Boolean
checkHolidayByWorkDay
=
checkHolidayByWorkDay
(
commonData
.
getDateStr
()
);
if
(
weekClassId
==
-
1L
)
{
//跳过本次循环
...
...
@@ -221,10 +221,10 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
//
// }
if
(
goInTime
==
false
&&
offInTime
==
false
)
{
log
.
info
(
"考勤时间不在上班区间与下班区间中,不做处理!attendDate:{}"
,
DateUtil
.
formatDateTime
(
commonData
.
getAttendanceDate
()));
// continue;
}
//
if (goInTime == false && offInTime == false) {
//
log.info("考勤时间不在上班区间与下班区间中,不做处理!attendDate:{}", DateUtil.formatDateTime(commonData.getAttendanceDate()));
//
// continue;
//
}
if
(
goInTime
)
{
//如果是上班打卡区间范围,判断是否迟到
for
(
AttendanceRecordDetailEntity
attendanceRecordDetailEntity
:
commonData
.
getDetailEntityList
())
{
...
...
@@ -454,11 +454,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
}
private
Boolean
checkWorkByHoliday
()
{
private
Boolean
checkWorkByHoliday
(
String
date
)
{
Boolean
bool
=
false
;
HolidayQuery
holidayQuery
=
new
HolidayQuery
();
holidayQuery
.
setStartTimeStart
(
DateUtil
.
today
()
);
holidayQuery
.
setStartTimeEnd
(
DateUtil
.
today
()
);
holidayQuery
.
setStartTimeStart
(
date
);
holidayQuery
.
setStartTimeEnd
(
date
);
HolidayEntity
holidayEntity
=
holidayService
.
selectOne
(
holidayQuery
);
if
(!
ObjectUtils
.
isEmpty
(
holidayEntity
))
{
Integer
workorholiday
=
holidayEntity
.
getWorkorholiday
();
...
...
@@ -470,11 +470,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
return
bool
;
}
private
Boolean
checkHolidayByWorkDay
()
{
private
Boolean
checkHolidayByWorkDay
(
String
date
)
{
Boolean
bool
=
false
;
HolidayQuery
holidayQuery
=
new
HolidayQuery
();
holidayQuery
.
setStartTimeStart
(
DateUtil
.
today
()
);
holidayQuery
.
setStartTimeEnd
(
DateUtil
.
today
()
);
holidayQuery
.
setStartTimeStart
(
date
);
holidayQuery
.
setStartTimeEnd
(
date
);
HolidayEntity
holidayEntity
=
holidayService
.
selectOne
(
holidayQuery
);
if
(!
ObjectUtils
.
isEmpty
(
holidayEntity
))
{
Integer
workorholiday
=
holidayEntity
.
getWorkorholiday
();
...
...
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
View file @
bfe873b7
...
...
@@ -33,8 +33,8 @@ Authorization: {{authToken}}
Content-Type: application/json
{
"attendanceDateStart":"2023-10-
19
",
"attendanceDateEnd":"2023-10-
19
"
"attendanceDateStart":"2023-10-
05
",
"attendanceDateEnd":"2023-10-
05
"
}
...
...
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