|
@ -56,7 +56,7 @@ public class StatsResiWarnServiceImpl implements StatsResiWarnService { |
|
|
} |
|
|
} |
|
|
List<IcResiCategoryStatsConfigDTO> icResiCategoryStatsConfigDTOList = statsResult.getData(); |
|
|
List<IcResiCategoryStatsConfigDTO> icResiCategoryStatsConfigDTOList = statsResult.getData(); |
|
|
//feign获取当前需要预警的配置信息以及阈值
|
|
|
//feign获取当前需要预警的配置信息以及阈值
|
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(); |
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(customerId); |
|
|
|
|
|
|
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
@ -200,7 +200,7 @@ public class StatsResiWarnServiceImpl implements StatsResiWarnService { |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void resiWarn(String customerId) { |
|
|
public void resiWarn(String customerId) { |
|
|
// 获取预警配置项
|
|
|
// 获取预警配置项
|
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(); |
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(customerId); |
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
|
} |
|
|
} |
|
@ -238,7 +238,7 @@ public class StatsResiWarnServiceImpl implements StatsResiWarnService { |
|
|
@Override |
|
|
@Override |
|
|
public void resiWarnByOne(String customerId, String userId) { |
|
|
public void resiWarnByOne(String customerId, String userId) { |
|
|
// 获取预警配置项
|
|
|
// 获取预警配置项
|
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(); |
|
|
Result<List<IcResiCategoryWarnConfigDTO>> warnResult = operCustomizeOpenFeignClient.resiCategoryWarnList(customerId); |
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
if (!warnResult.success() || null == warnResult.getData()) { |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
|
throw new RenException("预警配置查询失败:"+ warnResult.getMsg()); |
|
|
} |
|
|
} |
|
|