TGdbhFlightVideoMapper.xml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.onemap.apply.mapper.gdbh.TGdbhFlightVideoMapper">
  6. <resultMap type="TGdbhFlightVideoDto" id="TGdbhFlightVideoDtoResult">
  7. <result property="id" column="id"/>
  8. <result property="batch" column="batch"/>
  9. <result property="video_time" column="video_time"/>
  10. <result property="video_path" column="video_path"/>
  11. <result property="video_type" column="video_type"/>
  12. <result property="video_name" column="video_name"/>
  13. <result property="photo_path" column="photo_path"/>
  14. </resultMap>
  15. <select id="selectList" parameterType="TGdbhFlightVideoDto" resultMap="TGdbhFlightVideoDtoResult">
  16. SELECT *
  17. FROM t_gdbh_flight_video
  18. <where>
  19. <if test="batch!=null and batch!='' ">
  20. and batch = #{batch}
  21. </if>
  22. </where>
  23. order by video_time desc
  24. </select>
  25. </mapper>