<?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.dsh.course.mapper.PostCourseVideoMapper">
|
|
<select id="queryPostCourseVideolist" resultType="com.dsh.course.entity.PostCourseVideo">
|
SELECT *
|
FROM t_post_course_video
|
UNION ALL
|
SELECT *
|
FROM t_post_course_video1
|
UNION ALL
|
SELECT *
|
FROM t_post_course_video2
|
UNION ALL
|
SELECT *
|
FROM t_post_course_video3
|
UNION ALL
|
SELECT *
|
FROM t_post_course_video4
|
UNION ALL
|
SELECT *
|
FROM t_post_course_video5
|
WHERE 1 = 1
|
<if test="courseIds.size > 0 ">
|
and coursePackageId in
|
<foreach collection="courseIds" item="item" separator="," open="(" index="index" close=")">
|
#{item}
|
</foreach>
|
</if>
|
</select>
|
</mapper>
|