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
9c5d95bd
Commit
9c5d95bd
authored
Mar 11, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门窗口绩效汇总bug修改
parent
641d4b70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/web/WindowPerformSummaryController.java
...xhx/module/window/web/WindowPerformSummaryController.java
+14
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/web/WindowPerformSummaryController.java
View file @
9c5d95bd
...
@@ -5,6 +5,7 @@ import com.mortals.framework.model.Context;
...
@@ -5,6 +5,7 @@ import com.mortals.framework.model.Context;
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.module.window.model.WindowPerformSummaryEntity
;
import
com.mortals.xhx.module.window.model.WindowPerformSummaryEntity
;
import
com.mortals.xhx.module.window.model.WindowPerformSummaryQuery
;
import
com.mortals.xhx.module.window.service.WindowPerformSummaryService
;
import
com.mortals.xhx.module.window.service.WindowPerformSummaryService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -51,4 +52,17 @@ public class WindowPerformSummaryController extends BaseCRUDJsonBodyMappingContr
...
@@ -51,4 +52,17 @@ public class WindowPerformSummaryController extends BaseCRUDJsonBodyMappingContr
// }
// }
// }
// }
@Override
protected
void
doListBefore
(
WindowPerformSummaryEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
doListBefore
(
query
,
model
,
context
);
if
(
query
.
getYear
()!=
null
&&
query
.
getMonth
()!=
null
)
{
List
<
WindowPerformSummaryEntity
>
list
=
this
.
service
.
find
(
new
WindowPerformSummaryQuery
().
year
(
query
.
getYear
()).
month
(
query
.
getMonth
()));
if
(
CollectionUtils
.
isEmpty
(
list
))
{
service
.
initWindowPerformSummary
(
query
.
getYear
(),
query
.
getMonth
());
}
}
else
{
throw
new
AppException
(
"汇总年度和月份不能为空"
);
}
}
}
}
\ No newline at end of file
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