From 167236d51d359745c6abe0b6ed827b2ff7d37a4b Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期二, 17 六月 2025 17:39:42 +0800 Subject: [PATCH] 领导层首页-运行监控界面 --- src/main/resources/mapper/DeviceStateMapper.xml | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/DeviceStateMapper.xml b/src/main/resources/mapper/DeviceStateMapper.xml index 33a5492..1ab7d7d 100644 --- a/src/main/resources/mapper/DeviceStateMapper.xml +++ b/src/main/resources/mapper/DeviceStateMapper.xml @@ -35,4 +35,13 @@ order by tb_device_state.dev_id asc </where> </select> + <select id="getListByUserId" resultType="com.whyc.pojo.db_ram_db.DeviceState"> + select distinct dev_id,dev_workstate from db_ram_db.tb_device_state + where dev_id in( + select distinct dev_id from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup_power bp,db_station.tb_batt_inf bi + where bu.baoji_group_id = bp.baoji_group_id + and bp.station_id = bi.station_id + and bu.uid = #{userId} + ) + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1