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
b806ae94
Commit
b806ae94
authored
Jul 09, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效授权修改
parent
8c556983
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+35
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
b806ae94
...
@@ -126,6 +126,41 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
...
@@ -126,6 +126,41 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
}
}
}
}
@Override
protected
void
updateAfter
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
//OtherCheck作为绩效总开关,启用时新增当月绩效初始值,关闭时删除当月绩效数据
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)+
1
;
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
summaryQuery
.
setStaffId
(
entity
.
getId
());
summaryQuery
.
setYear
(
year
);
summaryQuery
.
setMonth
(
month
);
StaffPerformSummaryEntity
tempSummary
=
staffPerformSummaryService
.
selectOne
(
summaryQuery
);
if
(
entity
.
getOtherCheck
()
==
1
){
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
setStaffId
(
entity
.
getId
());
staffPerformSummaryEntity
.
setStaffName
(
entity
.
getName
());
staffPerformSummaryEntity
.
setDeptId
(
entity
.
getDeptId
());
staffPerformSummaryEntity
.
setDeptName
(
entity
.
getDeptName
());
staffPerformSummaryEntity
.
setSalaId
(
entity
.
getSalaId
());
staffPerformSummaryEntity
.
setSalaName
(
entity
.
getSalaName
());
staffPerformSummaryEntity
.
setYear
(
year
);
staffPerformSummaryEntity
.
setMonth
(
month
);
staffPerformSummaryEntity
.
setTotalScore
(
new
BigDecimal
(
100
));
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
if
(
tempSummary
==
null
)
{
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
}
}
else
{
if
(
tempSummary
!=
null
)
{
staffPerformSummaryService
.
remove
(
tempSummary
.
getId
(),
null
);
}
}
}
@Override
@Override
protected
void
saveBefore
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveBefore
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
int
count
=
this
.
count
(
new
StaffQuery
().
workNum
(
entity
.
getWorkNum
()),
context
);
int
count
=
this
.
count
(
new
StaffQuery
().
workNum
(
entity
.
getWorkNum
()),
context
);
...
...
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