|
@@ -20,6 +20,7 @@ import com.persagy.apm.energyalarmstarter.alarmdata.model.dto.alarmitem.QueryAla
|
|
|
import com.persagy.apm.energyalarmstarter.alarmdata.model.vo.AlarmItem;
|
|
|
import com.persagy.apm.energyalarmstarter.alarmdata.service.AlarmItemServiceImpl;
|
|
|
import com.persagy.framework.tenant.mybatis.datasource.db.holder.SaasContext;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.assertj.core.util.Lists;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -37,6 +38,7 @@ import java.util.stream.Collectors;
|
|
|
* @version 1.0
|
|
|
* @date 2018年8月17日
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class EnergyAlarmServiceImpl {
|
|
|
|
|
@@ -195,6 +197,7 @@ public class EnergyAlarmServiceImpl {
|
|
|
alarmRuleDTO.setUserId("test");
|
|
|
alarmRuleDTO.setAlarmItemCode(code);
|
|
|
AlarmResult<JSONObject> result = alarmServiceClient.queryProjectAlarmRules(alarmRuleDTO);
|
|
|
+ log.error("集团编码{}项目编码{}报警Code编码{}查询报警规则信息返回信息{}",SaasContext.getContextGroupCode(),projectId,code,result);
|
|
|
List<AlarmRuleDTO> alarmRuleDTOList = AlarmResultUtil.getRecords(result, AlarmRuleDTO.class);
|
|
|
allAlarmRuleDTOList.addAll(alarmRuleDTOList);
|
|
|
}
|