Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PRMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
PRMS
Commits
7a6ac271
Commit
7a6ac271
authored
May 26, 2021
by
shaochangbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改告警查询排序。降序
parent
a2742343
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
Manager.java
src/main/java/com/yingxin/prms/service/business/Manager.java
+5
-0
application.yml
src/main/resources/application.yml
+10
-5
No files found.
src/main/java/com/yingxin/prms/service/business/Manager.java
View file @
7a6ac271
...
...
@@ -122,6 +122,11 @@ public class Manager {
public
Map
<
String
,
Object
>
getAlarmMsg
()
{
Map
<
String
,
Object
>
map
=
new
HashMap
();
List
<
AlarmMsg
>
alarmList
=
cassandraDao
.
getAlarmMsgList
();
if
(
alarmList
!=
null
&&
alarmList
.
size
()>
0
){
//查询结果非空List降序排序(根据AlarmMsg::getAlatime)
alarmList
=
alarmList
.
stream
().
sorted
(
Comparator
.
comparing
(
AlarmMsg:
:
getAlatime
)).
collect
(
Collectors
.
toList
());
Collections
.
reverse
(
alarmList
);
}
map
.
put
(
"alarmMsg"
,
alarmList
);
return
map
;
}
...
...
src/main/resources/application.yml
View file @
7a6ac271
...
...
@@ -5,7 +5,8 @@ spring:
cassandra
:
keyspace-name
:
ctid_prof
# contact-points: 200.102.10.11
contact-points
:
121.22.111.251
# contact-points: 121.22.111.251
contact-points
:
192.168.10.11
# port: 9042
port
:
9002
# username: gzt
...
...
@@ -47,12 +48,16 @@ tokeTime: 1200000
pointNumber
:
60
#微信告警
#应用代理ID
agentId
:
1000004
agentId
:
123
#agentId: 1000004
#管理组凭证密钥
corpsecret
:
0gXvhsss
corpsecret
:
123
#corpsecret: 0gXvhsss
#corpsecret: 0gXvh18To60vLpw1wlPO4ncshvZjDKR0vaUuHAeDOb0
#wx告警地址
wxurl
:
hssss
wxurl
:
123
#wxurl: hssss
#wxurl: https://qyapi.weixin.qq.com/cgi-bin/gettoken
#企业ID
corpid
:
wwb8a34ddb02c87228
corpid
:
123
#corpid: wwb8a34ddb02c87228
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