Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
e7656f5b
Commit
e7656f5b
authored
Jun 17, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加预警设置查询是否存在接口
parent
3369e798
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
WarnSettingController.java
...in/java/com/xyst/dinas/biz/web/WarnSettingController.java
+17
-0
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/WarnSettingController.java
View file @
e7656f5b
...
...
@@ -56,6 +56,23 @@ public class WarnSettingController {
return
warningService
.
queryWarnSettingById
(
id
);
}
/**
* 根据业务id、业务类型和指标名称判断预警设置是否存在
* @param billId
* @param billType
* @param target
* @return
*/
@GetMapping
(
"/warnsetting/isExist"
)
public
boolean
isExist
(
@RequestParam
(
name
=
"billId"
)
String
billId
,
@RequestParam
(
name
=
"billType"
)
String
billType
,
@RequestParam
(
name
=
"target"
)
String
target
)
{
List
<
KObject
>
list
=
warningService
.
queryWarnSettings
(
billType
,
UUID
.
fromString
(
billId
),
target
);
if
(
list
.
size
()
==
0
)
{
return
false
;
}
else
{
return
true
;
}
}
//查询预警汇总信息
@GetMapping
(
"/warnRecode/groupInfo"
)
public
Object
groupInfo
(
@RequestParam
(
name
=
"regionalCompanyIds"
)
List
<
UUID
>
regionalCompanyIds
,
@RequestParam
(
name
=
"targets"
)
List
<
String
>
targets
)
{
...
...
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