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
3af26f8d
Commit
3af26f8d
authored
Jul 25, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改评价统计更新与组合查询
parent
f9692cf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
bill-manager/src/main/java/com/mortals/xhx/common/key/RedisKey.java
...er/src/main/java/com/mortals/xhx/common/key/RedisKey.java
+7
-7
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
...m/mortals/xhx/module/pj/web/PjEvaluateStatController.java
+14
-3
No files found.
bill-manager/src/main/java/com/mortals/xhx/common/key/RedisKey.java
View file @
3af26f8d
...
...
@@ -11,37 +11,37 @@ public class RedisKey {
/**
* 站点--排号--业务--count
*/
public
static
final
String
KEY_SITE_QUEUE_BUSNIESS_CHCHE
=
"site:queue:busniess:"
;
public
static
final
String
KEY_SITE_QUEUE_BUSNIESS_CHCHE
=
"s
tat:s
ite:queue:busniess:"
;
/**
* 站点--排号--部门--count
*/
public
static
final
String
KEY_SITE_QUEUE_SECTIONNAME_CHCHE
=
"site:queue:sectionname:"
;
public
static
final
String
KEY_SITE_QUEUE_SECTIONNAME_CHCHE
=
"s
tat:s
ite:queue:sectionname:"
;
/**
* 站点--排号--窗口--count
*/
public
static
final
String
KEY_SITE_QUEUE_WINDOW_CHCHE
=
"site:queue:window:"
;
public
static
final
String
KEY_SITE_QUEUE_WINDOW_CHCHE
=
"s
tat:s
ite:queue:window:"
;
/**
* 站点--排号--大厅--count
*/
public
static
final
String
KEY_SITE_QUEUE_HALLNAME_CHCHE
=
"site:queue:hallname:"
;
public
static
final
String
KEY_SITE_QUEUE_HALLNAME_CHCHE
=
"s
tat:s
ite:queue:hallname:"
;
/**
* 站点--评价--部门--count
*/
public
static
final
String
KEY_SITE_PJ_SECTIONNAME_CHCHE
=
"site:pj:sectionname:"
;
public
static
final
String
KEY_SITE_PJ_SECTIONNAME_CHCHE
=
"s
tat:s
ite:pj:sectionname:"
;
/**
* 站点--评价--窗口--count
*/
public
static
final
String
KEY_SITE_PJ_WINDOW_CHCHE
=
"site:pj:window:"
;
public
static
final
String
KEY_SITE_PJ_WINDOW_CHCHE
=
"s
tat:s
ite:pj:window:"
;
/**
* 站点--评价--大厅--count
*/
public
static
final
String
KEY_SITE_PJ_HALLNAME_CHCHE
=
"site:pj:hallname:"
;
public
static
final
String
KEY_SITE_PJ_HALLNAME_CHCHE
=
"s
tat:s
ite:pj:hallname:"
;
}
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
View file @
3af26f8d
...
...
@@ -78,9 +78,20 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
Map
<
String
,
String
>
hallNameMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_PJ_HALLNAME_CHCHE
+
siteId
);
Map
<
String
,
String
>
windowFromnumMap
=
cacheService
.
hgetAll
(
RedisKey
.
KEY_SITE_PJ_WINDOW_CHCHE
+
siteId
);
this
.
addDict
(
model
,
"sectionNameList"
,
sectionNameMap
);
this
.
addDict
(
model
,
"hallNameList"
,
hallNameMap
);
this
.
addDict
(
model
,
"windowFromnumList"
,
windowFromnumMap
);
List
<
Map
<
String
,
String
>>
m1
=
sectionNameMap
.
entrySet
().
stream
()
.
sorted
((
e1
,
e2
)
->
Integer
.
compare
(
Integer
.
parseInt
(
e2
.
getValue
()),
Integer
.
parseInt
(
e1
.
getValue
())))
.
map
(
item
->
new
HashMap
<
String
,
String
>(){{
put
(
item
.
getKey
(),
item
.
getValue
());}}).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
m2
=
hallNameMap
.
entrySet
().
stream
()
.
sorted
((
e1
,
e2
)
->
Integer
.
compare
(
Integer
.
parseInt
(
e2
.
getValue
()),
Integer
.
parseInt
(
e1
.
getValue
())))
.
map
(
item
->
new
HashMap
<
String
,
String
>(){{
put
(
item
.
getKey
(),
item
.
getValue
());}}).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
m3
=
windowFromnumMap
.
entrySet
().
stream
()
.
sorted
((
e1
,
e2
)
->
Integer
.
compare
(
Integer
.
parseInt
(
e2
.
getValue
()),
Integer
.
parseInt
(
e1
.
getValue
())))
.
map
(
item
->
new
HashMap
<
String
,
String
>(){{
put
(
item
.
getKey
(),
item
.
getValue
());}}).
collect
(
Collectors
.
toList
());
this
.
addDict
(
model
,
"sectionNameList"
,
m1
);
this
.
addDict
(
model
,
"hallNameList"
,
m2
);
this
.
addDict
(
model
,
"windowFromnumList"
,
m3
);
this
.
addDict
(
model
,
"groupList"
,
GroupListEnum
.
getEnumMap
());
}
...
...
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