|
@@ -1,8 +1,8 @@
|
|
|
package com.persagy.apm.alarmservice.group.alarmrule.controller;
|
|
|
|
|
|
import com.persagy.apm.alarmservice.group.alarmrule.model.dto.AddGroupAlarmRuleDTO;
|
|
|
+import com.persagy.apm.alarmservice.group.alarmrule.model.dto.QueryAlarmProjectDTO;
|
|
|
import com.persagy.apm.alarmservice.group.alarmrule.service.IGroupAlarmRuleService;
|
|
|
-import com.persagy.apm.alarmservice.project.alarmcondition.model.dto.QueryAlarmConditionByObjDTO;
|
|
|
import com.persagy.apm.alarmservice.project.alarmrule.service.IProjectAlarmRuleService;
|
|
|
import com.persagy.apm.alarmservice.project.alarmruleobjrel.model.vo.ProjectVO;
|
|
|
import com.persagy.apm.common.response.ApmResponseUpsertVO;
|
|
@@ -74,7 +74,7 @@ public class PressureMeasurementController {
|
|
|
|
|
|
@ApiOperation(value = "查询同步项目列表")
|
|
|
@PostMapping("/query_project")
|
|
|
- public CommonResult<List<ProjectVO>> queryProject(@RequestBody QueryAlarmConditionByObjDTO alarmConditionByObjDTO) {
|
|
|
+ public CommonResult<List<ProjectVO>> queryProject(@Valid @RequestBody QueryAlarmProjectDTO queryAlarmProjectDTO) {
|
|
|
List<ProjectVO> projects = null;
|
|
|
try {
|
|
|
projects = projectAlarmRuleService.getProject();
|