Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-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
赵啸非
bill-platform
Commits
5c3c720a
Commit
5c3c720a
authored
Jul 24, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改评价统计更新与组合查询
parent
f1f69523
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
23 deletions
+116
-23
bill-manager/src/main/java/com/mortals/xhx/module/pj/service/impl/PjEvaluateStatServiceImpl.java
...xhx/module/pj/service/impl/PjEvaluateStatServiceImpl.java
+108
-14
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
...m/mortals/xhx/module/pj/web/PjEvaluateStatController.java
+8
-9
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/pj/service/impl/PjEvaluateStatServiceImpl.java
View file @
5c3c720a
This diff is collapsed.
Click to expand it.
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
View file @
5c3c720a
...
...
@@ -25,6 +25,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.xhx.module.pj.model.PjEvaluateStatEntity
;
import
com.mortals.xhx.module.pj.service.PjEvaluateStatService
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -63,9 +64,9 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
PjEvaluateStatQuery
pjEvaluateStatQuery
=
new
PjEvaluateStatQuery
();
pjEvaluateStatQuery
.
setSiteId
((
Long
)
siteId
);
List
<
PjEvaluateStatEntity
>
pjEvaluateStatEntities
=
this
.
service
.
find
(
pjEvaluateStatQuery
,
context
);
Map
<
String
,
String
>
sectionNameMap
=
pjEvaluateStatEntities
.
s
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getSectionName
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getSectionName
,
PjEvaluateStatEntity:
:
getSectionName
,
(
k1
,
k2
)
->
k2
));
Map
<
String
,
String
>
hallNameMap
=
pjEvaluateStatEntities
.
s
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getHallName
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getHallName
,
PjEvaluateStatEntity:
:
getHallName
,
(
k1
,
k2
)
->
k2
));
Map
<
String
,
String
>
windowFromnumMap
=
pjEvaluateStatEntities
.
s
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getWindowFromnum
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getWindowFromnum
,
PjEvaluateStatEntity:
:
getWindowFromnum
,
(
k1
,
k2
)
->
k2
));
Map
<
String
,
String
>
sectionNameMap
=
pjEvaluateStatEntities
.
parallelS
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getSectionName
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getSectionName
,
PjEvaluateStatEntity:
:
getSectionName
,
(
k1
,
k2
)
->
k2
));
Map
<
String
,
String
>
hallNameMap
=
pjEvaluateStatEntities
.
parallelS
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getHallName
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getHallName
,
PjEvaluateStatEntity:
:
getHallName
,
(
k1
,
k2
)
->
k2
));
Map
<
String
,
String
>
windowFromnumMap
=
pjEvaluateStatEntities
.
parallelS
tream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getWindowFromnum
())).
collect
(
Collectors
.
toMap
(
PjEvaluateStatEntity:
:
getWindowFromnum
,
PjEvaluateStatEntity:
:
getWindowFromnum
,
(
k1
,
k2
)
->
k2
));
this
.
addDict
(
model
,
"sectionNameList"
,
sectionNameMap
);
this
.
addDict
(
model
,
"hallNameList"
,
hallNameMap
);
...
...
@@ -79,13 +80,11 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
@Override
protected
void
doListBefore
(
PjEvaluateStatEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
ObjectUtils
.
isEmpty
(
query
.
getHallName
()))
query
.
setHallName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getSectionName
()))
query
.
setSectionName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getPjOption
()))
query
.
setPjOption
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnum
()))
query
.
setWindowFromnum
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getHallName
())&&
ObjectUtils
.
isEmpty
(
query
.
getHallNameList
())&&
ObjectUtils
.
isEmpty
(
query
.
getHallNameNotList
()))
query
.
setHallNameList
(
Arrays
.
asList
(
""
));
if
(
ObjectUtils
.
isEmpty
(
query
.
getSectionName
())&&
ObjectUtils
.
isEmpty
(
query
.
getSectionNameList
())&&
ObjectUtils
.
isEmpty
(
query
.
getSectionNameNotList
()))
query
.
setSectionNameList
(
Arrays
.
asList
(
""
));
if
(
ObjectUtils
.
isEmpty
(
query
.
getPjOption
())&&
ObjectUtils
.
isEmpty
(
query
.
getPjOptionList
())&&
ObjectUtils
.
isEmpty
(
query
.
getPjOptionNotList
()))
query
.
setPjOptionList
(
Arrays
.
asList
(
""
));
if
(
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnum
())&&
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnumList
())&&
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnumNotList
()))
query
.
setWindowFromnumList
(
Arrays
.
asList
(
""
));
//年月日
//根据查询条件自动添加分组字段
addGroup
(
query
);
...
...
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