whycxzp
2025-06-10 73bb5617e6aeb4ee8f7dfd4ad54b61d477969d86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.whyc.mapper.BattStationTempAlarmMapper" >
 
 
    <select id="getList" resultType="com.whyc.pojo.db_alarm.BattStationTempAlarm">
        select a.*,p.binf_name as battGroupName,p.power_name as powerName,s.sinf_name as stationName from db_alarm.tb_batt_station_temp_alarm a,db_batt.power_inf p,db_batt.station_inf s
        where a.batt_group_id = p.binf_id
        and a.station_id = s.sinf_id
        and a.end_time is null
        <if test="level!=null">
            and a.level = #{level}
        </if>
    </select>
    <select id="getHisList" resultType="com.whyc.pojo.db_alarm.BattStationTempAlarm">
        select a.*,p.binf_name as battGroupName,p.power_name as powerName,s.sinf_name as stationName from db_alarm.tb_batt_station_temp_alarm a,db_batt.power_inf p,db_batt.station_inf s
        where a.batt_group_id = p.binf_id
        and a.station_id = s.sinf_id
        and a.end_time is not null
        <if test="level!=null">
            and a.level = #{level}
        </if>
    </select>
</mapper>