| | |
| | | and tb_battalarm_data.alm_level=#{almLevel} |
| | | </if> |
| | | <if test="almIds!=null"> |
| | | and tb_battalarm_data.alm_id in( |
| | | and tb_battalarm_data.alm_id in |
| | | <foreach collection="almIds" item="almId" open="(" separator="," close=")"> |
| | | #{almId} |
| | | </foreach> |
| | | ) |
| | | |
| | | </if> |
| | | <if test="uid>100"> |
| | | and tb_batt_inf.station_id in( |
| | |
| | | and tb_devalarm_data.alm_level=#{almLevel} |
| | | </if> |
| | | <if test="almIds!=null"> |
| | | and tb_devalarm_data.alm_id in( |
| | | and tb_devalarm_data.alm_id in |
| | | <foreach collection="almIds" item="almId" open="(" separator="," close=")"> |
| | | #{almId} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="uid>100"> |
| | | and tb_batt_inf.station_id in( |
| | |
| | | and tb_pwrdev_alarm.alm_level=#{almLevel} |
| | | </if> |
| | | <if test="almIds!=null"> |
| | | and tb_pwrdev_alarm.alm_id in( |
| | | and tb_pwrdev_alarm.alm_id in |
| | | <foreach collection="almIds" item="almId" open="(" separator="," close=")"> |
| | | #{almId} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="uid>100"> |
| | | and tb_pwrdev_alarm.power_id in( |
| | |
| | | id in( |
| | | select distinct uid from db_user.tb_baojigroup_usr |
| | | <where> |
| | | baoji_group_id in( |
| | | baoji_group_id in |
| | | <foreach collection="baojiIdList" item="baojiId" open="(" separator="," close=")"> |
| | | #{baojiId} |
| | | </foreach> |
| | | ) |
| | | </where> |
| | | ) |
| | | </where> |