From d728f14a2f23cb477ebfecd33df5f7e5cb54a178 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 29 十月 2024 17:33:22 +0800
Subject: [PATCH] 去掉rocketmq
---
smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml
index a9d7326..8756650 100644
--- a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml
+++ b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml
@@ -210,19 +210,15 @@
<!-- 鍘熷limit limit #{start}, #{end} 锛屽疄闄呬笂end搴旇鏄痯ageSize-->
<select id="alarmByWorkstation" resultType="com.qianwen.smartman.modules.mdc.vo.AlarmAnalysisWorkstationVO">
- select code as alarmCode,
+ select code as alarmCode,
message as alarmMsg
- from root.f2.alarm_*
- where workstation_id = #{workstationId}
- order by time desc
+ from root.f2.alarm_${workstationId} order by time desc
limit #{end} offset #{start}
align by device
</select>
<select id="alarmByWorkstationTotal" resultType="java.lang.Integer">
- select count(workstation_id)
- from root.f2.alarm_*
- where workstation_id = #{workstationId}
+ select count(workstation_id) from root.f2.alarm_${workstationId}
</select>
<!-- , -->
--
Gitblit v1.9.3