| New file | 
 |  |  | 
 |  |  | <?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="alarmLastInfo" 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="openCloseValveLastInfo" 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> | 
 |  |  |  | 
 |  |  |     <select id="lossLastInfo" resultType="com.dy.pipIrrGlobal.voAllRound.VoArIntakeRemote"> | 
 |  |  |         select | 
 |  |  |         dt AS lossDt, | 
 |  |  |         loss_amount AS lossAmount | 
 |  |  |         from rm_loss_day_last rldl | 
 |  |  |         where intake_id = #{intakeId,jdbcType=BIGINT} | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | </mapper> |