liurunyu
2025-01-22 4917ae8ab0ef975560674adf20d7001bef0a47d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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.dy.pipIrrGlobal.daoAllRound.Ar4RemoteMapper">
 
    <select id="alarmInfo" resultType="com.dy.pipIrrGlobal.VoAllRound.VoArIntakeRemote">
        select
        CONCAT(
        IF(alarm_loss = 1, '漏损报警,', ''),
        IF(alarm_battery_volt = 1, '电池电压报警,', ''),
        IF(alarm_valve = 1, '阀门报警,', ''),
        IF(alarm_water_meter_fault = 1, '流量计故障报警,', '')
        ) AS alarm,
        dt AS alarmDt
        from rm_alarm_state_last rasl
        where intake_id = #{intakeId,jdbcType=BIGINT}
    </select>
 
    <select id="openCloseValveInfo" resultType="com.dy.pipIrrGlobal.VoAllRound.VoArIntakeRemote">
        select
        op_dt AS lastOpenDt,
        cl_dt AS lastCloseDt
        from rm_open_close_valve_last rocvl
        where intake_id = #{intakeId,jdbcType=BIGINT}
    </select>
 
</mapper>