Compare commits

..

2 Commits

Author SHA1 Message Date
eb04363076 Merge remote-tracking branch 'origin/master' 2024-10-14 15:30:46 +08:00
658e7ba04a 忽略租户 2024-10-14 15:30:15 +08:00

View File

@ -2,6 +2,7 @@ package com.inspur.module.system.api.alarm;
import com.inspur.framework.common.util.json.JsonUtils; import com.inspur.framework.common.util.json.JsonUtils;
import com.inspur.framework.common.util.object.BeanUtils; import com.inspur.framework.common.util.object.BeanUtils;
import com.inspur.framework.tenant.core.aop.TenantIgnore;
import com.inspur.module.system.api.alarm.dto.AlarmRulesRespDTO; import com.inspur.module.system.api.alarm.dto.AlarmRulesRespDTO;
import com.inspur.module.system.constant.EquipAyalyzeStatusConstant; import com.inspur.module.system.constant.EquipAyalyzeStatusConstant;
import com.inspur.module.system.constant.JudgeConstant; import com.inspur.module.system.constant.JudgeConstant;
@ -50,6 +51,7 @@ public class AlarmRulesApiImpl implements AlarmRulesApi{
private EquipInfoService equipInfoService; private EquipInfoService equipInfoService;
@Override @Override
@TenantIgnore
public List<AlarmRulesRespDTO> selectAlarmRulesListByCatch(String equipId) { public List<AlarmRulesRespDTO> selectAlarmRulesListByCatch(String equipId) {
List<AlarmRulesRespDTO> alarmRules = JsonUtils.parseArray(stringRedisTemplate.opsForValue().get(equipId),AlarmRulesRespDTO.class); List<AlarmRulesRespDTO> alarmRules = JsonUtils.parseArray(stringRedisTemplate.opsForValue().get(equipId),AlarmRulesRespDTO.class);
if(alarmRules == null || alarmRules.size() == 0){ if(alarmRules == null || alarmRules.size() == 0){