FsVideoResourceMapper.xml 989 B

1234567891011121314151617181920212223242526
  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.fs.course.mapper.FsVideoResourceMapper">
  6. <select id="selectVideoResourceListByMap" resultType="com.fs.course.vo.FsVideoResourceVO">
  7. select
  8. rr.*
  9. from fs_video_resource rr
  10. where rr.is_del = 0
  11. <if test="params.resourceName != null and params.resourceName != ''">
  12. and rr.resource_name like concat('%', #{params.resourceName}, '%')
  13. </if>
  14. <if test="params.fileName != null and params.fileName != ''">
  15. and rr.file_name like concat('%', #{params.fileName}, '%')
  16. </if>
  17. <if test="params.typeId != null">
  18. and rr.type_id = #{params.typeId}
  19. </if>
  20. <if test="params.typeSubId != null">
  21. and rr.type_sub_id = #{params.typeSubId}
  22. </if>
  23. order by rr.id
  24. </select>
  25. </mapper>