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
6c94d3ad
Commit
6c94d3ad
authored
Mar 15, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效核查时间查询条件修改;绩效汇总分数时按照人员绩效维度配置进行汇总;绩效汇总列表增加中文排序
parent
0e6ca006
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
171 additions
and
92 deletions
+171
-92
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckComplainRecordVo.java
...tals/xhx/module/check/model/vo/CheckComplainRecordVo.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckEffectRecordVo.java
...ortals/xhx/module/check/model/vo/CheckEffectRecordVo.java
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckGoworkRecordVo.java
...ortals/xhx/module/check/model/vo/CheckGoworkRecordVo.java
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckOtherRecordVo.java
...mortals/xhx/module/check/model/vo/CheckOtherRecordVo.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckReviewRecordVo.java
...ortals/xhx/module/check/model/vo/CheckReviewRecordVo.java
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+19
-24
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+19
-8
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+19
-8
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+19
-8
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
...ck/service/impl/CheckWindowWorkmanPerformServiceImpl.java
+23
-12
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAttendRecordController.java
...als/xhx/module/check/web/CheckAttendRecordController.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckComplainRecordController.java
...s/xhx/module/check/web/CheckComplainRecordController.java
+9
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckEffectRecordController.java
...als/xhx/module/check/web/CheckEffectRecordController.java
+8
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckGoworkRecordController.java
...als/xhx/module/check/web/CheckGoworkRecordController.java
+10
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckOtherRecordController.java
...tals/xhx/module/check/web/CheckOtherRecordController.java
+9
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckReviewRecordController.java
...als/xhx/module/check/web/CheckReviewRecordController.java
+6
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformGoworkRecordController.java
...xhx/module/perform/web/PerformGoworkRecordController.java
+0
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformSummaryEntity.java
...als/xhx/module/staff/model/StaffPerformSummaryEntity.java
+1
-1
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformSummaryMapper.xml
...sources/sqlmap/module/staff/StaffPerformSummaryMapper.xml
+4
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckComplainRecordVo.java
View file @
6c94d3ad
...
...
@@ -23,5 +23,9 @@ public class CheckComplainRecordVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
/** 开始 投诉时间 */
private
String
complainTimeStart
;
/** 结束 投诉时间 */
private
String
complainTimeEnd
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckEffectRecordVo.java
View file @
6c94d3ad
...
...
@@ -23,5 +23,10 @@ public class CheckEffectRecordVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
/** 开始 发生时间 */
private
String
happenTimeStart
;
/** 结束 发生时间 */
private
String
happenTimeEnd
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckGoworkRecordVo.java
View file @
6c94d3ad
...
...
@@ -23,5 +23,10 @@ public class CheckGoworkRecordVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
/** 开始 办理时间 */
private
String
goworkTimeStart
;
/** 结束 办理时间 */
private
String
goworkTimeEnd
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckOtherRecordVo.java
View file @
6c94d3ad
...
...
@@ -23,5 +23,9 @@ public class CheckOtherRecordVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
/** 开始 发生时间 */
private
String
happenTimeStart
;
/** 结束 发生时间 */
private
String
happenTimeEnd
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckReviewRecordVo.java
View file @
6c94d3ad
...
...
@@ -23,4 +23,9 @@ public class CheckReviewRecordVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
/** 开始 评价时间 */
private
String
reviewTimeStart
;
/** 结束 评价时间 */
private
String
reviewTimeEnd
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
6c94d3ad
...
...
@@ -233,6 +233,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
@@ -272,7 +273,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
...
@@ -285,7 +286,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
@@ -440,7 +441,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
statEntity
.
setTotalScore
(
totalScore
);
}
private
static
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
...
...
@@ -457,28 +458,22 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
summary
=
summary
.
add
(
reviewScore
);
summary
=
summary
.
add
(
attendScore
);
summary
=
summary
.
add
(
otherScore
);
summary
=
summary
.
add
(
goworkScore
);
summary
=
summary
.
add
(
effectScore
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
public
static
void
main
(
String
[]
args
)
{
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(-
0.4
));
String
ss
=
"{\"attendWeight\":10,\"effectWeight\":20,\"goworkWeight\":20,\"reviewWeight\":0,\"selfWeight\":50}"
;
WeightPdu
weightPdu
=
JSONObject
.
parseObject
(
ss
,
WeightPdu
.
class
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
weightPdu
));
// BigDecimal total = new BigDecimal(100);
// BigDecimal reviewScore = total.add(staffPerformSummaryEntity.getReviewScore()); //评价
// System.out.println(reviewScore);
// reviewScore = reviewScore.multiply(weightPdu.attendWeight());
// System.out.println(weightPdu.reviewWeight());
// System.out.println(reviewScore);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
staffPerformSummaryEntity
));
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
6c94d3ad
...
...
@@ -225,6 +225,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
@@ -264,7 +265,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
...
@@ -280,7 +281,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
@@ -435,7 +436,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
statEntity
.
setTotalScore
(
totalScore
);
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
...
...
@@ -452,11 +453,21 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
summary
=
summary
.
add
(
reviewScore
);
summary
=
summary
.
add
(
attendScore
);
summary
=
summary
.
add
(
otherScore
);
summary
=
summary
.
add
(
goworkScore
);
summary
=
summary
.
add
(
effectScore
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
6c94d3ad
...
...
@@ -222,6 +222,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
@@ -261,7 +262,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
...
@@ -277,7 +278,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
@@ -432,7 +433,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
statEntity
.
setTotalScore
(
totalScore
);
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
...
...
@@ -449,11 +450,21 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
summary
=
summary
.
add
(
reviewScore
);
summary
=
summary
.
add
(
attendScore
);
summary
=
summary
.
add
(
otherScore
);
summary
=
summary
.
add
(
goworkScore
);
summary
=
summary
.
add
(
effectScore
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
6c94d3ad
...
...
@@ -227,6 +227,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
@@ -266,7 +267,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
...
@@ -282,7 +283,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
@@ -437,7 +438,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
statEntity
.
setTotalScore
(
totalScore
);
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
...
...
@@ -454,11 +455,21 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
summary
=
summary
.
add
(
reviewScore
);
summary
=
summary
.
add
(
attendScore
);
summary
=
summary
.
add
(
otherScore
);
summary
=
summary
.
add
(
goworkScore
);
summary
=
summary
.
add
(
effectScore
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
View file @
6c94d3ad
...
...
@@ -14,11 +14,9 @@ import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo;
import
com.mortals.xhx.module.dept.model.DeptEntity
;
import
com.mortals.xhx.module.dept.model.DeptPerformStatEntity
;
import
com.mortals.xhx.module.dept.model.DeptPerformStatQuery
;
import
com.mortals.xhx.module.staff.model.StaffPerformStatEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformStatQuery
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryQuery
;
import
com.mortals.xhx.module.staff.model.*
;
import
com.mortals.xhx.module.staff.service.StaffPerformSummaryService
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -58,6 +56,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
private
ParamService
paramService
;
@Autowired
private
ICacheService
cacheService
;
@Autowired
private
StaffService
staffService
;
@Override
public
void
examine
(
CheckWindowWorkmanPerformEntity
entity
,
Context
context
)
throws
AppException
{
...
...
@@ -104,6 +104,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
...
@@ -141,7 +142,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
...
@@ -156,7 +157,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
BigDecimal
Score100
=
new
BigDecimal
(
100
);
staffPerformSummaryEntity
.
setErrorScore
(
Score100
.
subtract
(
vo
.
getSumScore
()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
@@ -167,7 +168,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
return
summaryVoList
;
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
){
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
...
...
@@ -184,11 +185,21 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
summary
=
summary
.
add
(
reviewScore
);
summary
=
summary
.
add
(
attendScore
);
summary
=
summary
.
add
(
otherScore
);
summary
=
summary
.
add
(
goworkScore
);
summary
=
summary
.
add
(
effectScore
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAttendRecordController.java
View file @
6c94d3ad
...
...
@@ -86,9 +86,9 @@ public class CheckAttendRecordController extends BaseCRUDJsonBodyMappingControll
protected
void
doListBefore
(
CheckAttendRecordEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
)));
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
error
Time"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
));
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
error
Time"
,
OrderCol
.
DESCENDING
));
}
if
(
ObjectUtils
.
isEmpty
(
query
.
getErrorTimeStart
())){
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckComplainRecordController.java
View file @
6c94d3ad
...
...
@@ -22,6 +22,8 @@ import com.mortals.xhx.module.check.model.CheckComplainRecordEntity;
import
com.mortals.xhx.module.check.service.CheckComplainRecordService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -77,14 +79,16 @@ public class CheckComplainRecordController extends BaseCRUDJsonBodyMappingContro
protected
void
doListBefore
(
CheckComplainRecordEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
doListBefore
(
query
,
model
,
context
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"c
reate
Time"
,
OrderCol
.
DESCENDING
)));
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"c
omplain
Time"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"c
reate
Time"
,
OrderCol
.
DESCENDING
));
query
.
getOrderColList
().
add
(
new
OrderCol
(
"c
omplain
Time"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
if
(
ObjectUtils
.
isEmpty
(
query
.
getComplainTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
query
.
setComplainTimeStart
(
DateUtil
.
format
(
firstDayOfMonth
,
"yyyy-MM-dd"
));
//query.setComplainTimeEnd(DateUtil.formatDate(query.getCreateTime()));
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckEffectRecordController.java
View file @
6c94d3ad
...
...
@@ -26,6 +26,7 @@ import com.mortals.xhx.module.check.service.CheckEffectRecordService;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -88,14 +89,16 @@ public class CheckEffectRecordController extends BaseCRUDJsonBodyMappingControll
protected
void
doListBefore
(
CheckEffectRecordEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
doListBefore
(
query
,
model
,
context
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
)));
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
happen
Time"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
));
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
happen
Time"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
if
(
ObjectUtils
.
isEmpty
(
query
.
getHappenTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
query
.
setHappenTimeStart
(
DateUtil
.
format
(
firstDayOfMonth
,
"yyyy-MM-dd"
));
//query.setHappenTimeEnd(DateUtil.formatDate(query.getCreateTime()));
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckGoworkRecordController.java
View file @
6c94d3ad
...
...
@@ -22,6 +22,8 @@ import com.mortals.xhx.module.check.model.CheckGoworkRecordEntity;
import
com.mortals.xhx.module.check.service.CheckGoworkRecordService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -76,13 +78,16 @@ public class CheckGoworkRecordController extends BaseCRUDJsonBodyMappingControll
protected
void
doListBefore
(
CheckGoworkRecordEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
doListBefore
(
query
,
model
,
context
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
)));
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
gowork
Time"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
));
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
gowork
Time"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
if
(
ObjectUtils
.
isEmpty
(
query
.
getGoworkTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
query
.
setGoworkTimeStart
(
DateUtil
.
format
(
firstDayOfMonth
,
"yyyy-MM-dd"
));
//query.setGoworkTimeEnd(DateUtil.formatDate(query.getCreateTime()));
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckOtherRecordController.java
View file @
6c94d3ad
...
...
@@ -22,6 +22,8 @@ import com.mortals.xhx.module.check.model.CheckOtherRecordEntity;
import
com.mortals.xhx.module.check.service.CheckOtherRecordService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -76,14 +78,16 @@ public class CheckOtherRecordController extends BaseCRUDJsonBodyMappingControlle
protected
void
doListBefore
(
CheckOtherRecordEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
doListBefore
(
query
,
model
,
context
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
)));
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"
happen
Time"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
create
Time"
,
OrderCol
.
DESCENDING
));
query
.
getOrderColList
().
add
(
new
OrderCol
(
"
happen
Time"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
if
(
ObjectUtils
.
isEmpty
(
query
.
getHappenTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
query
.
setHappenTimeStart
(
DateUtil
.
format
(
firstDayOfMonth
,
"yyyy-MM-dd"
));
//query.setHappenTimeEnd(DateUtil.formatDate(query.getCreateTime()));
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckReviewRecordController.java
View file @
6c94d3ad
...
...
@@ -26,6 +26,7 @@ import com.mortals.xhx.module.check.service.CheckReviewRecordService;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -94,9 +95,11 @@ public class CheckReviewRecordController extends BaseCRUDJsonBodyMappingControll
query
.
getOrderColList
().
add
(
new
OrderCol
(
"createTime"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
if
(
ObjectUtils
.
isEmpty
(
query
.
getReviewTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
query
.
setReviewTimeStart
(
DateUtil
.
format
(
firstDayOfMonth
,
"yyyy-MM-dd"
));
//query.setReviewTimeEnd(DateUtil.formatDate(query.getCreateTime()));
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformGoworkRecordController.java
View file @
6c94d3ad
...
...
@@ -80,10 +80,6 @@ public class PerformGoworkRecordController extends BaseCRUDJsonBodyMappingContro
query
.
getOrderColList
().
add
(
new
OrderCol
(
"goworkTime"
,
OrderCol
.
DESCENDING
));
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getCreateTime
())){
query
.
setCreateTimeStart
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
query
.
setCreateTimeEnd
(
DateUtil
.
formatDate
(
query
.
getCreateTime
()));
}
if
(
ObjectUtils
.
isEmpty
(
query
.
getGoworkTimeStart
())){
LocalDateTime
currentDate
=
LocalDateTime
.
now
();
LocalDateTime
firstDayOfMonth
=
currentDate
.
withDayOfMonth
(
1
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformSummaryEntity.java
View file @
6c94d3ad
...
...
@@ -93,7 +93,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/**
* 累计异常分数
*/
@Excel
(
name
=
"累计异常分数"
)
//
@Excel(name = "累计异常分数")
private
BigDecimal
errorScore
;
/**
* 当月得分数
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformSummaryMapper.xml
View file @
6c94d3ad
...
...
@@ -554,9 +554,11 @@
<include
refid=
"_condition_"
/>
</trim>
</trim>
<include
refid=
"_orderCols_"
/>
<include
refid=
"_orderCols
New
_"
/>
</select>
<sql
id=
"_orderColsNew_"
>
order by CONVERT(a.salaName USING gbk),CONVERT(a.deptName USING gbk),CONVERT(a.staffName USING gbk)
</sql>
<!-- 获取 -->
...
...
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