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
5ddda379
Commit
5ddda379
authored
Apr 07, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面新增绩效记录时保存人员大厅信息;手动汇总绩效时初始化一次汇总月份的绩效分数
parent
87753cc4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
6 deletions
+35
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendRecordServiceImpl.java
.../perform/service/impl/PerformAttendRecordServiceImpl.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformEffectRecordServiceImpl.java
.../perform/service/impl/PerformEffectRecordServiceImpl.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformGoworkRecordServiceImpl.java
.../perform/service/impl/PerformGoworkRecordServiceImpl.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformOtherRecordServiceImpl.java
...e/perform/service/impl/PerformOtherRecordServiceImpl.java
+2
-0
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/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
...s/xhx/module/staff/web/StaffPerformSummaryController.java
+26
-5
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendRecordServiceImpl.java
View file @
5ddda379
...
@@ -93,6 +93,8 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
...
@@ -93,6 +93,8 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setSalaId
(
staffCache
==
null
?
null
:
staffCache
.
getSalaId
());
entity
.
setSalaName
(
staffCache
==
null
?
""
:
staffCache
.
getSalaName
());
}
}
entity
.
setErrorResult
(
entity
.
getRuleName
());
entity
.
setErrorResult
(
entity
.
getRuleName
());
entity
.
setDeductTime
(
new
Date
());
entity
.
setDeductTime
(
new
Date
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformEffectRecordServiceImpl.java
View file @
5ddda379
...
@@ -82,6 +82,8 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
...
@@ -82,6 +82,8 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setSalaId
(
staffCache
==
null
?
null
:
staffCache
.
getSalaId
());
entity
.
setSalaName
(
staffCache
==
null
?
""
:
staffCache
.
getSalaName
());
}
}
entity
.
setDeductTime
(
new
Date
());
entity
.
setDeductTime
(
new
Date
());
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeductPerson
()))
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeductPerson
()))
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformGoworkRecordServiceImpl.java
View file @
5ddda379
...
@@ -65,6 +65,8 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
...
@@ -65,6 +65,8 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setSalaId
(
staffCache
==
null
?
null
:
staffCache
.
getSalaId
());
entity
.
setSalaName
(
staffCache
==
null
?
""
:
staffCache
.
getSalaName
());
}
}
entity
.
setDeductTime
(
new
Date
());
entity
.
setDeductTime
(
new
Date
());
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeductPerson
())){
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeductPerson
())){
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformOtherRecordServiceImpl.java
View file @
5ddda379
...
@@ -66,6 +66,8 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo
...
@@ -66,6 +66,8 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
StaffEntity
staffCache
=
staffService
.
getCache
(
entity
.
getStaffId
().
toString
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setStaffName
(
staffCache
==
null
?
""
:
staffCache
.
getName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setDeptName
(
staffCache
==
null
?
""
:
staffCache
.
getDeptName
());
entity
.
setSalaId
(
staffCache
==
null
?
null
:
staffCache
.
getSalaId
());
entity
.
setSalaName
(
staffCache
==
null
?
""
:
staffCache
.
getSalaName
());
}
}
entity
.
setDeductTime
(
new
Date
());
entity
.
setDeductTime
(
new
Date
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformSummaryEntity.java
View file @
5ddda379
...
@@ -30,7 +30,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
...
@@ -30,7 +30,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/**
/**
* 所属中心
* 所属中心
*/
*/
@Excel
(
name
=
"所属中心"
)
//
@Excel(name = "所属中心")
private
String
belongCenter
;
private
String
belongCenter
;
/**
/**
* 工号
* 工号
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
View file @
5ddda379
package
com.mortals.xhx.module.staff.web
;
package
com.mortals.xhx.module.staff.web
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
...
@@ -30,15 +32,12 @@ import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
...
@@ -30,15 +32,12 @@ import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.*
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -118,6 +117,28 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
...
@@ -118,6 +117,28 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
String
busiDesc
=
"执行绩效汇总任务"
;
String
busiDesc
=
"执行绩效汇总任务"
;
int
code
=
1
;
int
code
=
1
;
try
{
try
{
if
(
StringUtils
.
isNotEmpty
(
query
.
getCheckTimeStart
())){
Date
date
=
DateUtils
.
StrToDateTime
(
query
.
getCheckTimeStart
());
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
date
);
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)
+
1
;
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setTotalScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
BigDecimal
.
ZERO
);
Map
<
String
,
Object
>
condition
=
new
HashMap
<>();
condition
.
put
(
"year"
,
year
);
condition
.
put
(
"month"
,
month
);
this
.
service
.
getDao
().
update
(
staffPerformSummaryEntity
,
condition
);
}
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
model
.
put
(
"message_info"
,
"开始执行绩效汇总,请稍后查看"
);
model
.
put
(
"message_info"
,
"开始执行绩效汇总,请稍后查看"
);
}
catch
(
Exception
var9
)
{
}
catch
(
Exception
var9
)
{
...
...
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