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
43ee7101
Commit
43ee7101
authored
1 year ago
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效汇总列表默认查询当年当月
parent
46e374b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffPerformSummaryServiceImpl.java
...le/staff/service/impl/StaffPerformSummaryServiceImpl.java
+16
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffPerformSummaryServiceImpl.java
View file @
43ee7101
package
com.mortals.xhx.module.staff.service.impl
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
org.apache.commons.collections4.CollectionUtils
;
...
...
@@ -13,6 +14,7 @@ import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity;
import
com.mortals.xhx.module.staff.service.StaffPerformSummaryService
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.Calendar
;
import
java.util.List
;
/**
...
...
@@ -29,6 +31,20 @@ public class StaffPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Staf
@Autowired
private
StaffService
staffService
;
@Override
protected
StaffPerformSummaryEntity
findBefore
(
StaffPerformSummaryEntity
params
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)
+
1
;
if
(
params
.
getYear
()==
null
){
params
.
setYear
(
year
);
}
if
(
params
.
getMonth
()==
null
){
params
.
setMonth
(
month
);
}
return
params
;
}
@Override
protected
void
findAfter
(
StaffPerformSummaryEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
StaffPerformSummaryEntity
>
list
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
...
...
This diff is collapsed.
Click to expand it.
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