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
27d6a162
Commit
27d6a162
authored
Jul 17, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/attendance-performance-platform
parents
a16eae87
de524c60
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
88 additions
and
67 deletions
+88
-67
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
...odule/check/service/impl/CheckOtherRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+11
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
...m/mortals/xhx/module/feedback/web/FeedbackController.java
+22
-7
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -155,6 +155,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setAttendScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -163,20 +164,20 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
)
{
if
(
temp
.
getReviewScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getReviewScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setReviewScore
(
temp
.
getReviewScore
(
));
}
if
(
temp
.
getOtherScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getOtherScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setOtherScore
(
temp
.
getOtherScore
(
));
}
if
(
temp
.
getGoworkScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getGoworkScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
temp
.
getGoworkScore
(
));
}
if
(
temp
.
getEffectScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getEffectScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
(
));
}
if
(
temp
.
getComplainScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getComplainScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
temp
.
getComplainScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -157,6 +157,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
)){
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setComplainScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -165,20 +166,20 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
){
if
(
temp
.
getAttendScore
()
=
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getAttendScore
()
!
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
temp
.
getAttendScore
(
));
}
if
(
temp
.
getOtherScore
()
=
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getOtherScore
()
!
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
temp
.
getOtherScore
(
));
}
if
(
temp
.
getGoworkScore
()
=
=
null
){
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getGoworkScore
()
!
=
null
){
staffPerformSummaryEntity
.
setGoworkScore
(
temp
.
getGoworkScore
(
));
}
if
(
temp
.
getEffectScore
()
=
=
null
){
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getEffectScore
()
!
=
null
){
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
(
));
}
if
(
temp
.
getReviewScore
()
=
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getReviewScore
()
!
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
temp
.
getReviewScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -157,6 +157,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
)){
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setEffectScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -165,20 +166,20 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
){
if
(
temp
.
getReviewScore
()
=
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getReviewScore
()
!
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
temp
.
getReviewScore
(
));
}
if
(
temp
.
getOtherScore
()
=
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getOtherScore
()
!
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
temp
.
getOtherScore
(
));
}
if
(
temp
.
getGoworkScore
()
=
=
null
){
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getGoworkScore
()
!
=
null
){
staffPerformSummaryEntity
.
setGoworkScore
(
temp
.
getGoworkScore
(
));
}
if
(
temp
.
getAttendScore
()
=
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getAttendScore
()
!
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
temp
.
getAttendScore
(
));
}
if
(
temp
.
getComplainScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getComplainScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
temp
.
getComplainScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -156,6 +156,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
)){
for
(
StaffCheckSummaryVo
vo:
summaryVoList
){
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setGoworkScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -164,20 +165,20 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
){
if
(
temp
.
getReviewScore
()
=
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getReviewScore
()
!
=
null
){
staffPerformSummaryEntity
.
setReviewScore
(
temp
.
getReviewScore
(
));
}
if
(
temp
.
getOtherScore
()
=
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getOtherScore
()
!
=
null
){
staffPerformSummaryEntity
.
setOtherScore
(
temp
.
getOtherScore
(
));
}
if
(
temp
.
getAttendScore
()
=
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getAttendScore
()
!
=
null
){
staffPerformSummaryEntity
.
setAttendScore
(
temp
.
getAttendScore
(
));
}
if
(
temp
.
getEffectScore
()
=
=
null
){
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getEffectScore
()
!
=
null
){
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
(
));
}
if
(
temp
.
getComplainScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getComplainScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
temp
.
getComplainScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -162,6 +162,7 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setOtherScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -170,20 +171,20 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
)
{
if
(
temp
.
getReviewScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getReviewScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setReviewScore
(
temp
.
getReviewScore
(
));
}
if
(
temp
.
getAttendScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getAttendScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setAttendScore
(
temp
.
getAttendScore
(
));
}
if
(
temp
.
getGoworkScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getGoworkScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
temp
.
getGoworkScore
(
));
}
if
(
temp
.
getEffectScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getEffectScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
(
));
}
if
(
temp
.
getComplainScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getComplainScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
temp
.
getComplainScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
27d6a162
...
...
@@ -162,6 +162,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setReviewScore
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
...
...
@@ -170,20 +171,20 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
summaryQuery
.
setMonth
(
vo
.
getMonth
());
StaffPerformSummaryEntity
temp
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
temp
!=
null
)
{
if
(
temp
.
getAttendScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getAttendScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setAttendScore
(
temp
.
getAttendScore
(
));
}
if
(
temp
.
getOtherScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getOtherScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setOtherScore
(
temp
.
getOtherScore
(
));
}
if
(
temp
.
getGoworkScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getGoworkScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setGoworkScore
(
temp
.
getGoworkScore
(
));
}
if
(
temp
.
getEffectScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getEffectScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
(
));
}
if
(
temp
.
getComplainScore
()
=
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
if
(
temp
.
getComplainScore
()
!
=
null
)
{
staffPerformSummaryEntity
.
setComplainScore
(
temp
.
getComplainScore
(
));
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
View file @
27d6a162
...
...
@@ -110,15 +110,30 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
PageInfo
pageInfo
=
this
.
buildPageInfo
(
query
);
Result
<
FeedbackStaffInfoVo
>
result
=
this
.
getService
().
getFeedbackStaffList
(
query
,
pageInfo
);
if
(
CollectionUtils
.
isNotEmpty
(
result
.
getList
()))
{
Map
<
Integer
,
List
<
FeedbackStaffInfoVo
>>
groupMap
=
result
.
getList
().
stream
().
collect
(
Collectors
.
groupingBy
(
FeedbackStaffInfoVo:
:
getBackStatus
));
if
(
groupMap
.
containsKey
(
1
))
{
model
.
put
(
"feedBack"
,
groupMap
.
get
(
1
).
size
());
}
else
{
// Map<Integer, List<FeedbackStaffInfoVo>> groupMap = result.getList().stream().collect(Collectors.groupingBy(FeedbackStaffInfoVo::getBackStatus));
// if (groupMap.containsKey(1)) {
// model.put("feedBack", groupMap.get(1).size());
// } else {
// model.put("feedBack", 0);
// }
// if (groupMap.containsKey(0)) {
// model.put("notBack", groupMap.get(0).size());
// } else {
// model.put("notBack", 0);
// }
query
.
setBackStatus
(
1
);
PageInfo
noPageInfo
=
new
PageInfo
(-
1
);
Result
<
FeedbackStaffInfoVo
>
feedBack
=
this
.
getService
().
getFeedbackStaffList
(
query
,
noPageInfo
);
query
.
setBackStatus
(
0
);
Result
<
FeedbackStaffInfoVo
>
notBack
=
this
.
getService
().
getFeedbackStaffList
(
query
,
noPageInfo
);
if
(
CollectionUtils
.
isNotEmpty
(
feedBack
.
getList
())){
model
.
put
(
"feedBack"
,
feedBack
.
getList
().
size
());
}
else
{
model
.
put
(
"feedBack"
,
0
);
}
if
(
groupMap
.
containsKey
(
0
))
{
model
.
put
(
"notBack"
,
groupMap
.
get
(
0
).
size
());
}
else
{
if
(
CollectionUtils
.
isNotEmpty
(
notBack
.
getList
()))
{
model
.
put
(
"notBack"
,
notBack
.
getList
(
).
size
());
}
else
{
model
.
put
(
"notBack"
,
0
);
}
}
else
{
...
...
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