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
5bcdefb0
Commit
5bcdefb0
authored
Jul 24, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改评价统计更新与组合查询
parent
90f73fe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
.../com/mortals/xhx/module/ph/web/PhQueueStatController.java
+17
-5
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
View file @
5bcdefb0
...
...
@@ -12,6 +12,7 @@ import com.mortals.framework.util.ThreadPool;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.GroupListEnum
;
import
com.mortals.xhx.common.key.RedisKey
;
import
com.mortals.xhx.common.pdu.RespData
;
import
com.mortals.xhx.common.pdu.site.SitePdu
;
import
com.mortals.xhx.feign.site.ISiteFeign
;
...
...
@@ -29,10 +30,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -66,6 +64,7 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
//通过站点 查询存在的部门 大厅等
Object
siteId
=
model
.
get
(
"siteId"
);
if
(!
ObjectUtils
.
isEmpty
(
siteId
))
{
/*
PhQueueStatQuery queueStatQuery = new PhQueueStatQuery();
queueStatQuery.setSiteId((Long) siteId);
List<PhQueueStatEntity> phQueueStatEntities = this.service.find(queueStatQuery, context);
...
...
@@ -74,7 +73,20 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
Map<String, String> windowFromnumMap = phQueueStatEntities.stream().filter(f -> !ObjectUtils.isEmpty(f.getWindowFromnum())).collect(Collectors.toMap(PhQueueStatEntity::getWindowFromnum, PhQueueStatEntity::getWindowFromnum, (k1, k2) -> k2));
Map<String, String> bussinessMap = phQueueStatEntities.stream().filter(f -> !ObjectUtils.isEmpty(f.getBusiness())).collect(Collectors.toMap(PhQueueStatEntity::getBusiness, PhQueueStatEntity::getBusiness, (k1, k2) -> k2));
this
.
addDict
(
model
,
"sectionNameList"
,
sectionNameMap
);
*/
Map
<
String
,
String
>
sectionNameMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_QUEUE_SECTIONNAME_CHCHE
+
siteId
);
Map
<
String
,
String
>
hallNameMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_QUEUE_HALLNAME_CHCHE
+
siteId
);
Map
<
String
,
String
>
windowFromnumMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_QUEUE_WINDOW_CHCHE
+
siteId
);
Map
<
String
,
String
>
bussinessMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_QUEUE_BUSNIESS_CHCHE
+
siteId
);
Map
<
String
,
Integer
>
m1
=
sectionNameMap
.
entrySet
().
stream
()
.
sorted
((
e1
,
e2
)
->
Integer
.
compare
(
Integer
.
parseInt
(
e1
.
getValue
()),
Integer
.
parseInt
(
e2
.
getValue
())))
.
collect
(
Collectors
.
toMap
(
Map
.
Entry
::
getKey
,
y
->
Integer
.
parseInt
(
y
.
getValue
()),(
e1
,
e2
)
->
e1
,
LinkedHashMap:
:
new
));
this
.
addDict
(
model
,
"sectionNameList"
,
m1
);
this
.
addDict
(
model
,
"hallNameList"
,
hallNameMap
);
this
.
addDict
(
model
,
"windowFromnumList"
,
windowFromnumMap
);
this
.
addDict
(
model
,
"businessList"
,
bussinessMap
);
...
...
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