MeterReadRecordMapper.xml 794 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.zoniot.wg.dao.MeterReadRecordMapper">
  4. <select id="getReadingMeter" resultType="com.zoniot.wg.dto.RequestMaterInfo">
  5. select
  6. meter_file_no as ciid,
  7. meter_no as miid,
  8. read_data as mrecode,
  9. read_time as mrrdate,
  10. now() as mrinputdate,
  11. 'xt' as mrinputper,
  12. 'Y' as mrreadok,
  13. 0 as mrface
  14. from sc_meter_read_record r
  15. where status = 1 and read_status = '2'
  16. and customer_id = #{customerId} and read_date = #{date}
  17. <if test ="meterNo != null">
  18. and meter_no = #{meterNo}
  19. </if>
  20. </select>
  21. </mapper>