| | |
| | | #{almType} |
| | | </foreach> |
| | | </if> |
| | | |
| | | and StationId in ( select distinct inf.StationId from |
| | | (select StationId from db_battinf.tb_battinf union select StationId from db_pwrdev_inf.tb_pwrdev_inf ) inf, |
| | | db_user.tb_user_battgroup_baojigroup_battgroup, |
| | |
| | | </where> |
| | | </select> |
| | | <select id="serchByLevel" resultType="java.lang.Integer"> |
| | | select alarm.*,inf.StationName from db_pwrdev_alarm.tb_pwrdev_alarm_history alarm,db_pwrdev_inf.tb_pwrdev_inf |
| | | select count(1) from db_pwrdev_alarm.tb_pwrdev_alarm_history alarm,db_pwrdev_inf.tb_pwrdev_inf |
| | | inf |
| | | <where> |
| | | alarm.PowerDeviceId = inf.PowerDeviceId |
| | |
| | | and |
| | | db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id=db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id |
| | | and db_user.tb_user_inf.uid=db_user.tb_user_battgroup_baojigroup_usr.uid |
| | | and db_user.tb_user_inf.uid=#{usrId} ) |
| | | and db_user.tb_user_inf.uid=#{uId} ) |
| | | </where> |
| | | </select> |
| | | |