Blame view

ContentVodMappingMapper.xml 909 Bytes
邓敏 committed
1 2 3 4
<?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.subsidy.mapper.ContentVodMappingMapper">

涂亚平 committed
5 6 7 8 9 10 11 12 13 14 15
    <select id="getCourseByContentId" parameterType="long" resultType="com.subsidy.model.CourseDictDO">
        SELECT
            t2.*
        FROM
            course_content t
            LEFT JOIN course_dict t2 ON t.course_id = t2.id
        WHERE
            t.delete_date IS NULL
            AND t2.delete_date IS NULL
            AND t.id = #{contentId}
    </select>
邓敏 committed
16

涂亚平 committed
17 18 19 20 21 22 23 24 25 26
    <select id="oldVodIds" parameterType="long" resultType="long">
        SELECT
            t.vod_id
        FROM
            paper_dict t
            LEFT JOIN course_content t2 ON t.course_id = t2.course_id
        WHERE
            t.delete_date IS NULL
            AND t2.id = #{contentId}
    </select>
邓敏 committed
27 28

</mapper>