|
|
@@ -195,22 +195,22 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAlarmTypeList" resultType="com.xunmei.iot.vo.alarmData.AlarmTypeSelectedVO">
|
|
|
- select source_type as value,
|
|
|
- replace(source_type_des,'传感器','') as label
|
|
|
+ select product_type as value,
|
|
|
+ replace(product_name,'传感器','') as label
|
|
|
from iot_alarm_system_field
|
|
|
- where source_type not in
|
|
|
+ where product_type not in
|
|
|
<foreach item="name" collection="excludeTypes" separator="," open="(" close=")">
|
|
|
#{name}
|
|
|
</foreach>
|
|
|
<choose>
|
|
|
<when test=" category == null or category =='' ">
|
|
|
- and (source_type like 'FSU_%' or source_type like 'AlarmHostInput_%')
|
|
|
+ and (product_type like 'FSU_%' or product_type like 'AlarmHostInput_%')
|
|
|
</when>
|
|
|
<when test=" category == '0' ">
|
|
|
- and source_type like 'FSU_%'
|
|
|
+ and product_type like 'FSU_%'
|
|
|
</when>
|
|
|
<when test=" category == '2'">
|
|
|
- and (source_type like 'AlarmHostInput_%' or source_type in
|
|
|
+ and (product_type like 'AlarmHostInput_%' or product_type in
|
|
|
<foreach item="name" collection="mixTypes" separator="," open="(" close=")">
|
|
|
#{name}
|
|
|
</foreach>
|
|
|
@@ -219,6 +219,6 @@
|
|
|
<otherwise>
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
- group by source_type
|
|
|
+ group by product_type
|
|
|
</select>
|
|
|
</mapper>
|