From 655fb526b8cec55a0aa0a4e7242148150c01e11a Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期三, 11 十二月 2024 14:55:46 +0800 Subject: [PATCH] content内容 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java index 2957989..aed70ef 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/consumer/ModelPredictFinishConsumer.java @@ -88,7 +88,11 @@ StringBuffer sb = new StringBuffer(); sb.append(data[0]); sb.append(item.getAlarmObj()); - sb.append(alarmMessage.getAlarmType()); + if("1".equals(alarmMessage.getAlarmType())){ + sb.append("超下限"); + }else if("2".equals(alarmMessage.getAlarmType())){ + sb.append("超上限"); + } sb.append(dataValue); sb.append(item.getUnit()); alarmMessage.setContent(sb.toString()); -- Gitblit v1.9.3