12345678910111213141516171819202122232425262728 |
- <?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.zoniot.wg.dao.MeterReadRecordMapper">
- <select id="getReadingMeter" resultType="com.zoniot.wg.dto.RequestMaterInfo">
- select
- meter_file_no as ciid,
- meter_no as miid,
- read_data as mrecode,
- read_time as mrrdate,
- now() as mrinputdate,
- 'xt' as mrinputper,
- 'Y' as mrreadok,
- 0 as mrface
- from sc_meter_read_record r
- where status = 1 and read_status = '2'
- and customer_id = #{customerId} and read_date = #{date}
- <if test ="meterNo != null">
- and meter_no = #{meterNo}
- </if>
- </select>
- </mapper>
|