LoopDataLogMapper.xml 683 B

1234567891011121314151617
  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.welampiot.dao.LoopDataLogDao">
  4. <select id="getLoopDataLogListByLoopDataLogVO" resultType="LoopDataLogDTO">
  5. select l.id,l.cura AS curA,l.curb AS curB,l.curc AS curC,
  6. l.insPa,l.insPb,l.insPc,l.volPa,l.volPb,l.volPc,
  7. l.updatetime AS updateTime,l.status
  8. from loop_data_log l
  9. where l.loop_id = #{id}
  10. order by l.updatetime desc
  11. <if test="page != null and count != null">
  12. limit #{page},#{count}
  13. </if>
  14. </select>
  15. </mapper>