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
ea0a26e7
Commit
ea0a26e7
authored
Oct 09, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤汇总修改离职判断逻辑,不再计算离职日期
parent
abb3f7cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
30 deletions
+33
-30
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
...le/attendance/service/impl/AttendanceStatServiceImpl.java
+33
-30
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
View file @
ea0a26e7
...
...
@@ -262,17 +262,18 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
continue
;
}
if
(
item
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
()){
continue
;
//离职状态时判断当前汇总日期是否在离职后
if
(
item
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
item
.
getLeaveDate
());
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
query
.
getSummaryTime
()))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
else
{
//没有离职日期也不统计
continue
;
}
//
if(item.getLeaveDate()!=null){
//
String leaveDateStr = DateUtils.getStrDate(item.getLeaveDate());
//
if(DateUtils.StrToDate(leaveDateStr).compareTo(DateUtils.StrToDate(query.getSummaryTime())) < 0){
//
//离职日期在统计日期之前不统计
//
continue;
//
}
//
}else {
//
//没有离职日期也不统计
//
continue;
//
}
}
AttendanceStatEntity
temp
=
this
.
selectOne
(
new
AttendanceStatQuery
().
staffId
(
item
.
getStaffId
()).
year
(
item
.
getYear
()).
month
(
item
.
getMonth
()).
day
(
item
.
getDay
()));
...
...
@@ -380,17 +381,18 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
List
<
AttendanceStaffStatEntity
>
updateStaffStat
=
new
ArrayList
<>();
for
(
ErrorSummaryVo
item
:
errorSummaryVoList
)
{
if
(
item
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
()){
continue
;
//离职状态时判断当前汇总日期是否在离职后
if
(
item
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
item
.
getLeaveDate
());
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
query
.
getSummaryTime
()))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
else
{
//没有离职日期也不统计
continue
;
}
//
if(item.getLeaveDate()!=null){
//
String leaveDateStr = DateUtils.getStrDate(item.getLeaveDate());
//
if(DateUtils.StrToDate(leaveDateStr).compareTo(DateUtils.StrToDate(query.getSummaryTime())) < 0){
//
//离职日期在统计日期之前不统计
//
continue;
//
}
//
}else {
//
//没有离职日期也不统计
//
continue;
//
}
}
AttendanceStatEntity
temp
=
this
.
selectOne
(
new
AttendanceStatQuery
().
staffId
(
item
.
getStaffId
()).
year
(
item
.
getYear
()).
month
(
item
.
getMonth
()).
day
(
item
.
getDay
()));
String
staffName
=
""
;
...
...
@@ -499,17 +501,18 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
BigDecimal
oneDay
=
new
BigDecimal
(
1
);
for
(
LeaveSummaryVo
item
:
leaveSummaryVoList
)
{
if
(
item
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
()){
continue
;
//离职状态时判断当前汇总日期是否在离职后
if
(
item
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
item
.
getLeaveDate
());
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
query
.
getSummaryTime
()))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
else
{
//没有离职日期也不统计
continue
;
}
//
if(item.getLeaveDate()!=null){
//
String leaveDateStr = DateUtils.getStrDate(item.getLeaveDate());
//
if(DateUtils.StrToDate(leaveDateStr).compareTo(DateUtils.StrToDate(query.getSummaryTime())) < 0){
//
//离职日期在统计日期之前不统计
//
continue;
//
}
//
}else {
//
//没有离职日期也不统计
//
continue;
//
}
}
String
attendanceSummary
=
""
;
AttendanceStatEntity
temp
=
this
.
selectOne
(
new
AttendanceStatQuery
().
staffId
(
item
.
getStaffId
()).
year
(
item
.
getYear
()).
month
(
item
.
getMonth
()).
day
(
item
.
getDay
()));
...
...
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