From ea5be111f899db0af7356bbee88c07161875cc54 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期一, 16 六月 2025 19:12:46 +0800 Subject: [PATCH] 领导层首页-实时告警信息 --- src/main/resources/mapper/PwrdevAlarmMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/PwrdevAlarmMapper.xml b/src/main/resources/mapper/PwrdevAlarmMapper.xml index 20e0be4..ac14f51 100644 --- a/src/main/resources/mapper/PwrdevAlarmMapper.xml +++ b/src/main/resources/mapper/PwrdevAlarmMapper.xml @@ -50,4 +50,14 @@ and pi.station_id=si.station_id and pa.num>#{id} </select> + <select id="getListByUserId" resultType="com.whyc.dto.AlarmDto"> + select pa.*,pa.num as alm_num,pi.power_name,pi.power_id,si.station_id,si.station_name from db_pwrdev_alarm.tb_pwrdev_alarm pa,db_station.tb_power_inf pi,db_station.tb_station_inf si + where pa.power_id=pi.power_id + and pi.station_id=si.station_id + and pa.power_id in ( + select distinct power_id from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup_power bp + where bu.baoji_group_id = bp.baoji_group_id + and bu.uid = #{userId} + ) + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1