<?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.UserVideoDetailsMapper">
|
|
|
<select id="queryAppUserWatchVideo" resultType="com.dsh.course.entity.UserVideoDetails">
|
SELECT *
|
FROM t_user_video_details
|
UNION ALL
|
SELECT *
|
FROM t_user_video_details1
|
UNION ALL
|
SELECT *
|
FROM t_user_video_details2
|
UNION ALL
|
SELECT *
|
FROM t_user_video_details3
|
UNION ALL
|
SELECT *
|
FROM t_user_video_details4
|
UNION ALL
|
SELECT *
|
FROM t_user_video_details5
|
WHERE 1=1
|
<if test="videoIds.size > 0 ">
|
and courseId in
|
<foreach collection="videoIds" item="item" separator="," open="(" index="index" close=")">
|
#{item}
|
</foreach>
|
</if>
|
</select>
|
</mapper>
|