| | |
| | | <if test="null != classificationId"> |
| | | and benefitsVideoClassificationId = #{classificationId} |
| | | </if> |
| | | <if test="null != ids"> |
| | | and courseId in |
| | | <foreach collection="ids" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by insertTime desc) |
| | | |
| | | union all |
| | |
| | | <if test="null != classificationId"> |
| | | and benefitsVideoClassificationId = #{classificationId} |
| | | </if> |
| | | <if test="null != ids"> |
| | | and courseId in |
| | | <foreach collection="ids" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by insertTime desc) |
| | | ) as a limit #{pageSize}, #{pageNo} |
| | | </select> |