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
87753cc4
Commit
87753cc4
authored
Apr 07, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤汇总表展示分数算法修改
parent
02072775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffPerformSummaryServiceImpl.java
...le/staff/service/impl/StaffPerformSummaryServiceImpl.java
+10
-7
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
87753cc4
...
...
@@ -271,8 +271,8 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if
(
temp
.
getEffectScore
()
!=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
());
}
if
(
temp
.
get
Review
Score
()
!=
null
)
{
staffPerformSummaryEntity
.
set
ReviewScore
(
temp
.
getReview
Score
());
if
(
temp
.
get
Complain
Score
()
!=
null
)
{
staffPerformSummaryEntity
.
set
ComplainScore
(
temp
.
getComplain
Score
());
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffPerformSummaryServiceImpl.java
View file @
87753cc4
...
...
@@ -7,6 +7,7 @@ import com.mortals.framework.model.PageInfo;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.staff.dao.StaffPerformSummaryDao
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity
;
...
...
@@ -77,18 +78,20 @@ public class StaffPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Staf
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
reviewScore
=
StaffPerformUtil
.
REVIEW_SCORE
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
if
(
reviewScore
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
reviewScore
=
BigDecimal
.
ZERO
;
}
staffPerformSummaryEntity
.
setReviewScore
(
reviewScore
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
));
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
staffPerformSummaryEntity
.
setAttendScore
(
attendScore
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
));
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOther
Score
();
//自评不用加100
if
(
other
Score
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
)
;
BigDecimal
complainScore
=
staffPerformSummaryEntity
.
getComplain
Score
();
//自评不用加100
if
(
complain
Score
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
complainScore
=
StaffPerformUtil
.
SCORE100
;
}
otherScore
=
other
Score
.
multiply
(
weightPdu
.
selfWeight
());
staffPerformSummaryEntity
.
set
OtherScore
(
other
Score
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
));
complainScore
=
complain
Score
.
multiply
(
weightPdu
.
selfWeight
());
staffPerformSummaryEntity
.
set
ComplainScore
(
complain
Score
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
));
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
staffPerformSummaryEntity
.
setGoworkScore
(
goworkScore
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
));
...
...
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