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
69826f3f
Commit
69826f3f
authored
1 year ago
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效汇总时过滤已离职的员工
parent
2aa496a9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
1 deletion
+69
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+12
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+11
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+11
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+11
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+11
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
...ck/service/impl/CheckWindowWorkmanPerformServiceImpl.java
+13
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
69826f3f
...
...
@@ -213,7 +213,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
@Override
public
List
<
StaffCheckSummaryVo
>
summaryCheck
(
StaffCheckSummaryQuery
query
)
throws
AppException
{
if
(
StringUtils
.
isEmpty
(
query
.
getCheckTimeStart
())
||
StringUtils
.
isEmpty
(
query
.
getCheckTime
Start
()))
{
if
(
StringUtils
.
isEmpty
(
query
.
getCheckTimeStart
())
||
StringUtils
.
isEmpty
(
query
.
getCheckTime
End
()))
{
/* SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DAY_OF_MONTH, 1);
...
...
@@ -234,6 +234,17 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
69826f3f
...
...
@@ -201,6 +201,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
69826f3f
...
...
@@ -226,6 +226,17 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
}
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
69826f3f
...
...
@@ -223,6 +223,17 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
}
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
69826f3f
...
...
@@ -228,6 +228,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
View file @
69826f3f
...
...
@@ -2,10 +2,12 @@ package com.mortals.xhx.module.check.service.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.CheckStatusEnum
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.common.code.StaffSatusEnum
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformEntity
;
...
...
@@ -105,6 +107,17 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getLeaveDate
()!=
null
){
String
leaveDateStr
=
DateUtils
.
getStrDate
(
staffEntity
.
getLeaveDate
());
String
month
=
vo
.
getMonth
()>
9
?
String
.
valueOf
(
vo
.
getMonth
()):
"0"
+
vo
.
getMonth
();
String
summaryDate
=
vo
.
getYear
()+
"-"
+
month
+
"-01"
;
if
(
DateUtils
.
StrToDate
(
leaveDateStr
).
compareTo
(
DateUtils
.
StrToDate
(
summaryDate
))
<
0
){
//离职日期在统计日期之前不统计
continue
;
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
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