| | |
| | | <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> |