Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
ee817131
Commit
ee817131
authored
Sep 06, 2021
by
xugaojun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
cd91c569
68a0b020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AlertTypeEnum.java
...n/java/com/gic/haoban/manage/api/enums/AlertTypeEnum.java
+1
-1
CheckQywxSettingApiServiceImpl.java
...vice/service/out/impl/CheckQywxSettingApiServiceImpl.java
+2
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/AlertTypeEnum.java
View file @
ee817131
...
@@ -7,7 +7,7 @@ public enum AlertTypeEnum {
...
@@ -7,7 +7,7 @@ public enum AlertTypeEnum {
QYWX_TAG_SYNC
(
1
,
"企微标签同步"
,
null
),
QYWX_TAG_SYNC
(
1
,
"企微标签同步"
,
null
),
QUNFA_MESSAGE
(
2
,
"企微群发"
,
null
),
QUNFA_MESSAGE
(
2
,
"企微群发"
,
null
),
FRIEND_ADD
(
3
,
"企微好友添加"
,
null
),
FRIEND_ADD
(
3
,
"企微好友添加"
,
null
),
CLOUD_STORE_CHANGE
(
4
,
"观云台
转态变
回收站"
,
null
),;
CLOUD_STORE_CHANGE
(
4
,
"观云台
门店进
回收站"
,
null
),;
private
Integer
type
;
private
Integer
type
;
private
String
name
;
private
String
name
;
private
String
dingUrl
;
private
String
dingUrl
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/CheckQywxSettingApiServiceImpl.java
View file @
ee817131
...
@@ -136,7 +136,8 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
...
@@ -136,7 +136,8 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
}
}
//告警是否拦截重复告警 防止批量触发
//告警是否拦截重复告警 防止批量触发
if
(
StringUtils
.
isNotBlank
(
messageDTO
.
getKey
()))
{
if
(
StringUtils
.
isNotBlank
(
messageDTO
.
getKey
()))
{
RBucket
<
Object
>
bucket
=
RedisUtil
.
getRedisClient
().
getBucket
(
messageDTO
.
getKey
());
String
key
=
messageDTO
.
getKey
()
+
messageDTO
.
getAlertType
();
RBucket
<
Object
>
bucket
=
RedisUtil
.
getRedisClient
().
getBucket
(
key
);
boolean
b
=
bucket
.
trySet
(
1
,
60L
,
TimeUnit
.
SECONDS
);
boolean
b
=
bucket
.
trySet
(
1
,
60L
,
TimeUnit
.
SECONDS
);
if
(!
b
)
{
if
(!
b
)
{
return
;
return
;
...
...
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