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
0dad8201
Commit
0dad8201
authored
Mar 18, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
15d2a115
75be5886
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
208 additions
and
14 deletions
+208
-14
attendance-performance-manager-ui/admin/src/views/staff/perform/summary/list.vue
...manager-ui/admin/src/views/staff/perform/summary/list.vue
+127
-13
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/CheckOtherRecordServiceImpl.java
...odule/check/service/impl/CheckOtherRecordServiceImpl.java
+12
-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-ui/admin/src/views/staff/perform/summary/list.vue
View file @
0dad8201
...
...
@@ -111,13 +111,30 @@ export default {
{
label
:
"
姓名
"
,
prop
:
"
staffName
"
,
formatter
:
this
.
formatter
},
{
label
:
"
工号
"
,
prop
:
"
workNum
"
,
formatter
:
this
.
formatter
},
{
label
:
"
工号
"
,
prop
:
"
workNum
"
,
formatter
:
this
.
formatter
,
width
:
80
,
},
{
label
:
"
手机号
"
,
prop
:
"
phoneNumber
"
,
formatter
:
this
.
formatter
},
{
label
:
"
手机号
"
,
prop
:
"
phoneNumber
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
所属大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
},
{
label
:
"
所属大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
所属部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatter
},
{
label
:
"
所属部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
所属中心
"
,
formatter
:
(
row
)
=>
{
...
...
@@ -128,31 +145,128 @@ export default {
{
label
:
"
考勤绩效指标分数
"
,
prop
:
"
attendScore
"
,
width
:
140
,
formatter
:
(
row
)
=>
{
console
.
log
(
row
,
this
.
tableData
.
dict
,
"
1111
"
);
return
(
this
.
tableData
.
dict
.
weightPdu
.
attendWeight
-
row
.
attendScore
).
toFixed
(
2
)
>
0
?
(
<
span
style
=
"
color:red
"
>
{
row
.
attendScore
+
"
(-
"
+
(
this
.
tableData
.
dict
.
weightPdu
.
attendWeight
-
row
.
attendScore
).
toFixed
(
2
)
+
"
)
"
}
<
/span
>
)
:
(
row
.
attendScore
+
`(
${(
this
.
tableData
.
dict
.
weightPdu
.
attendWeight
-
row
.
attendScore
).
toFixed
(
2
)}
)`
);
},
},
{
label
:
"
评价绩效指标分数
"
,
prop
:
"
reviewScore
"
,
width
:
140
,
formatter
:
(
row
)
=>
{
return
(
this
.
tableData
.
dict
.
weightPdu
.
reviewWeight
-
row
.
reviewScore
).
toFixed
(
2
)
>
0
?
(
<
span
style
=
"
color:red
"
>
{
row
.
reviewScore
+
"
(-
"
+
(
this
.
tableData
.
dict
.
weightPdu
.
reviewWeight
-
row
.
reviewScore
).
toFixed
(
2
)
+
"
)
"
}
<
/span
>
)
:
(
row
.
reviewScore
+
`(
${(
this
.
tableData
.
dict
.
weightPdu
.
reviewWeight
-
row
.
reviewScore
).
toFixed
(
2
)}
)`
);
},
},
{
label
:
"
投诉绩效指标分数
"
,
prop
:
"
complainScore
"
,
},
// {
// label: "投诉绩效指标分数",
// prop: "complainScore",
// formatter: (row) => {
// return (
// row.complainScore +
// `(${this.tableData.dict.attendWeight - row.complainScore})`
// );
// },
// },
{
label
:
"
办件绩效分数
"
,
prop
:
"
goworkScore
"
,
width
:
140
,
formatter
:
(
row
)
=>
{
return
(
this
.
tableData
.
dict
.
weightPdu
.
goworkWeight
-
row
.
goworkScore
).
toFixed
(
2
)
>
0
?
(
<
span
style
=
"
color:red
"
>
{
row
.
goworkScore
+
"
(-
"
+
(
this
.
tableData
.
dict
.
weightPdu
.
goworkWeight
-
row
.
goworkScore
).
toFixed
(
2
)
+
"
)
"
}
<
/span
>
)
:
(
row
.
goworkScore
+
`(
${(
this
.
tableData
.
dict
.
weightPdu
.
goworkWeight
-
row
.
goworkScore
).
toFixed
(
2
)}
)`
);
},
},
{
label
:
"
效能绩效分数
"
,
prop
:
"
effectScore
"
,
width
:
140
,
formatter
:
(
row
)
=>
{
return
(
this
.
tableData
.
dict
.
weightPdu
.
effectWeight
-
row
.
effectScore
).
toFixed
(
2
)
>
0
?
(
<
span
style
=
"
color:red
"
>
{
row
.
effectScore
+
"
(-
"
+
(
this
.
tableData
.
dict
.
weightPdu
.
effectWeight
-
row
.
effectScore
).
toFixed
(
2
)
+
"
)
"
}
<
/span
>
)
:
(
row
.
effectScore
+
`(
${(
this
.
tableData
.
dict
.
weightPdu
.
effectWeight
-
row
.
effectScore
).
toFixed
(
2
)}
)`
);
},
},
{
label
:
"
自评绩效分数
"
,
prop
:
"
otherScore
"
,
},
// {
// label: "自评绩效分数",
// prop: "otherScore",
// formatter: (row) => {
// return (
// row.attendScore +
// `(${this.tableData.dict.selfWeight - row.attendScore})`
// );
// },
// },
// {
// label: "累计异常分数",
...
...
@@ -167,7 +281,7 @@ export default {
{
label
:
"
月
"
,
prop
:
"
month
"
,
formatter
:
this
.
formatter
},
{
label
:
"
操作
"
,
width
:
24
0
,
width
:
12
0
,
formatter
:
(
row
)
=>
{
return
(
<
table
-
buttons
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -206,6 +206,18 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
List
<
StaffCheckSummaryVo
>
summaryVoList
=
dao
.
summaryCheck
(
query
);
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
;
}
}
}
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
View file @
0dad8201
...
...
@@ -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
;
}
...
...
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