Commit e7656f5b by shiwenbo

增加预警设置查询是否存在接口

parent 3369e798
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment