| | |
| | | and tb_pwrdev_alarm.alm_level=#{almLevel} |
| | | </if> |
| | | <if test="almIds!=null"> |
| | | and tb_pwrdev_alarm.alm_id in |
| | | <foreach collection="almIds" item="almId" open="(" separator="," close=")"> |
| | | #{almId} |
| | | </foreach> |
| | | <if test="almIds.size==0"> |
| | | and tb_pwrdev_alarm.alm_id =0 |
| | | </if> |
| | | <if test="almIds.size>0"> |
| | | and tb_pwrdev_alarm.alm_id in |
| | | <foreach collection="almIds" item="almId" open="(" separator="," close=")"> |
| | | #{almId} |
| | | </foreach> |
| | | </if> |
| | | </if> |
| | | |
| | | <if test="uid>100"> |
| | | and tb_pwrdev_alarm.power_id in( |
| | | select distinct power_id from db_user.tb_baojigroup_power,db_user.tb_baojigroup_usr |