|
@@ -38,6 +38,7 @@
|
|
select count(*)
|
|
select count(*)
|
|
from project_alarm_rule a
|
|
from project_alarm_rule a
|
|
left join project_alarm_rule_obj_rel b on a.id = b.project_alarm_rule_id
|
|
left join project_alarm_rule_obj_rel b on a.id = b.project_alarm_rule_id
|
|
|
|
+ left join alarm_condition c on a.alarm_condition_id = c.id
|
|
where a.group_id = #{groupId} and a.valid = 1
|
|
where a.group_id = #{groupId} and a.valid = 1
|
|
<if test="alarmItemCode != null and alarmItemCode != ''">
|
|
<if test="alarmItemCode != null and alarmItemCode != ''">
|
|
and a.alarm_item_code = #{alarmItemCode}
|
|
and a.alarm_item_code = #{alarmItemCode}
|