Blame view

VodPlayHistoryMapper.xml 17.6 KB
涂亚平 committed
1 2 3 4 5 6
<?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.VodPlayHistoryMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.subsidy.model.VodPlayHistoryDO">
涂亚平 committed
7 8 9 10 11 12 13 14 15
        <id column="id" property="id"/>
        <result column="create_date" property="createDate"/>
        <result column="update_date" property="updateDate"/>
        <result column="delete_date" property="deleteDate"/>
        <result column="class_id" property="classId"/>
        <result column="vod_id" property="vodId"/>
        <result column="member_id" property="memberId"/>
        <result column="play_length" property="playLength"/>
        <result column="play_record" property="playRecord"/>
涂亚平 committed
16 17 18 19 20 21 22 23 24
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        create_date,
        update_date,
        delete_date,
        id, class_id, vod_id, member_id, play_length, play_record
    </sql>
涂亚平 committed
25 26 27
<!--    <delete id="deleteById">-->
<!--        delete from vod_play_history-->
<!--    </delete>-->
涂亚平 committed
28

涂亚平 committed
29
    <select id="studyHistory" parameterType="long" resultType="com.subsidy.vo.vod.StudyHistoryVO">
30
       SELECT
涂亚平 committed
31 32 33 34 35
            t2.id,
            t2.vod_length,
            t2.teacher_name,
            t2.vod_url,
            t2.vod_name,
涂亚平 committed
36
            t3.play_record,
37
            t3.create_date,
涂亚平 committed
38 39 40 41 42
            IF
        (
            round( t.play_length * 100 / t2.vod_length )>= 100,
            100,
        round( t.play_length * 100 / t2.vod_length )) AS percent
涂亚平 committed
43 44 45 46
        FROM
            (
            SELECT
                t.vod_id,
涂亚平 committed
47
                t.member_id,
48
                sum( t.play_length ) AS play_length
涂亚平 committed
49 50 51 52
            FROM
                vod_play_history t
            WHERE
                t.delete_date IS NULL
涂亚平 committed
53
                AND t.member_id = #{memberId}
涂亚平 committed
54
            GROUP BY
涂亚平 committed
55 56
                t.vod_id,
                t.member_id
涂亚平 committed
57
            ) t
58
            LEFT JOIN vod_play_history t3 ON t.vod_id = t3.vod_id
涂亚平 committed
59
            AND t.member_id = t3.member_id
涂亚平 committed
60 61 62
            LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
            t2.delete_date IS NULL
63 64
        ORDER BY
            t3.create_date DESC
涂亚平 committed
65 66
    </select>

涂亚平 committed
67 68 69 70 71 72 73
    <select id="getMemberStudyInfo" resultType="com.subsidy.vo.vod.GetMemberStudyInfoVO">
        SELECT
            t.member_id,
            DATE_FORMAT( t.create_date, '%Y-%m-%d' ) as studyDate,
            sum( t.play_length ) as playLength,
            sum(
            IF
74
                ( t.play_length >= t2.vod_length, t2.vod_length, t.play_length )) AS distinctLength
涂亚平 committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
        FROM
            vod_play_history t
        LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
            t.delete_date IS NULL
        AND t2.delete_date IS NULL
        AND t.class_id = #{classId}
        AND t.member_id IN
        <foreach collection="memberIds" item="id" index="index" open="(" close=")" separator=",">
            #{id}
        </foreach>
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) BETWEEN DATE_FORMAT( #{startDate}, '%Y-%m-%d' )
            AND DATE_FORMAT( #{endDate}, '%Y-%m-%d' )
            GROUP BY
            t.member_id,
            DATE_FORMAT( t.create_date, '%Y-%m-%d' )
    </select>

邓敏 committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
    <select id="getVodPlayHistory" resultType="com.subsidy.model.VodPlayHistoryDO">
        SELECT
            a.member_id,
            a.class_id,
            a.vod_id,
            a.play_length,
            a.play_count,
            b.play_record
        FROM
            ( SELECT sum( play_length ) as play_length, sum( play_count ) as play_count, member_id, class_id, vod_id FROM vod_play_history GROUP BY member_id, class_id, vod_id ) a
                LEFT JOIN ( SELECT max( create_date ), play_record, member_id, class_id, vod_id FROM vod_play_history GROUP BY member_id, class_id, vod_id ) b ON a.member_id = b.member_id
                AND a.class_id = b.class_id
                AND a.vod_id = b.vod_id
    </select>

涂亚平 committed
108
    <select id="memberDailyStudyLength" resultType="integer">
涂亚平 committed
109
        SELECT
涂亚平 committed
110
            ifnull( sum( t.play_length ), 0 )
涂亚平 committed
111 112 113 114 115 116
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = DATE_FORMAT( now(), '%Y-%m-%d' )
            AND t.member_id = #{memberId}
涂亚平 committed
117
            and t.class_id = #{classId}
涂亚平 committed
118 119
    </select>

120
    <select id="completeVodOrNot" resultType="integer">
121 122 123 124 125 126 127 128 129
       SELECT
        IF
            ( sum( t.play_length )>= t2.vod_length, 1, 0 ) AS count
        FROM
            vod_play_history t
            LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
            t.delete_date IS NULL
            AND t.member_id = #{memberId}
涂亚平 committed
130
            and t.class_id = #{classId}
131
            AND t.vod_id = #{vodId}
132
    </select>
涂亚平 committed
133

涂亚平 committed
134
<!--    <select id="classStudyHistory" parameterType="long" resultType="com.subsidy.vo.sign.DataViewVO">-->
涂亚平 committed
135

涂亚平 committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
<!--    SELECT-->
<!--	t10.mem_cnt AS memberCount,-->
<!--	ifnull( floor( t2.ttl / t10.mem_cnt ), 0 ) AS studyVodCounts,-->
<!--	ifnull( t3.total_vods, 0 ) AS totalVodCounts,-->
<!--	ifnull( avg_playlength, 0 ) AS avgVodPlayLength,-->
<!--	ifnull( floor( t4.pass_cnt * 100 / t10.mem_cnt ), 0 ) AS passRate,-->
<!--	ifnull( t5.ask_cnt, 0 ) AS answerCount-->
<!--FROM-->
<!--	( SELECT t.class_id, count( 1 ) AS mem_cnt FROM class_member_mapping t WHERE t.delete_date IS NULL AND t.class_id = #{classId} ) t10-->
<!--	LEFT JOIN (-->
<!--	SELECT-->
<!--		t.class_id,-->
<!--		count(-->
<!--		DISTINCT ( t.member_id )) AS mem_cnt,-->
<!--		round( sum( t.play_length )/ count( DISTINCT ( t.member_id )), 0 ) AS avg_playlength-->
<!--	FROM-->
<!--		vod_play_history t-->
<!--	WHERE-->
<!--		t.delete_date IS NULL-->
<!--		AND t.class_id = #{classId}-->
<!--	) t ON t.class_id = t10.class_id-->
<!--	LEFT JOIN (-->
<!--	SELECT-->
<!--		t3.class_id,-->
<!--		sum( t3.cnt ) AS ttl-->
<!--	FROM-->
<!--		(-->
<!--		SELECT-->
<!--			t.class_id,-->
<!--			t.member_id,-->
<!--			t.vod_id,-->
<!--		IF-->
<!--			( sum( t.play_length )>= t2.vod_length, 1, 0 ) AS cnt-->
<!--		FROM-->
<!--			vod_play_history t-->
<!--			LEFT JOIN vod_dict t2 ON t.vod_id = t2.id-->
<!--		WHERE-->
<!--			t.class_id = #{classId}-->
<!--			AND t.delete_date IS NULL-->
<!--		GROUP BY-->
<!--			t.class_id,-->
<!--			t.member_id,-->
<!--			t.vod_id-->
<!--		) t3-->
<!--	) t2 ON t.class_id = t2.class_id-->
<!--	LEFT JOIN (-->
<!--	SELECT-->
<!--		t.id,-->
<!--		count( 1 ) AS total_vods-->
<!--	FROM-->
<!--		class_dict t-->
<!--		LEFT JOIN course_content t2 ON t.course_id = t2.course_id-->
<!--		LEFT JOIN vod_dict t3 ON t2.id = t3.content_id-->
<!--	WHERE-->
<!--		t.delete_date IS NULL-->
<!--		AND t2.delete_date IS NULL-->
<!--		AND t3.delete_date IS NULL-->
<!--		AND t.id = #{classId}-->
<!--	) t3 ON t.class_id = t3.id-->
<!--	LEFT JOIN (-->
<!--	SELECT-->
<!--		t2.class_id,-->
<!--		sum(-->
<!--		IF-->
<!--		( t2.cnt >= t4.paper_cnt, 1, 0 )) AS pass_cnt-->
<!--	FROM-->
<!--		(-->
<!--		SELECT-->
<!--			t2.class_id,-->
<!--			t2.member_id,-->
<!--			sum( t2.cnt ) AS cnt-->
<!--		FROM-->
<!--			(-->
<!--			SELECT-->
<!--				t.paper_id,-->
<!--				t.class_id,-->
<!--				t.member_id,-->
<!--			IF-->
<!--				( max( t.score )>= 60, 1, 0 ) AS cnt-->
<!--			FROM-->
<!--				exercise_done_result t-->
<!--			WHERE-->
<!--				t.class_id = #{classId}-->
<!--				AND t.delete_date IS NULL-->
<!--			GROUP BY-->
<!--				t.paper_id,-->
<!--				t.class_id,-->
<!--				t.member_id-->
<!--			) t2-->
<!--		GROUP BY-->
<!--			t2.class_id,-->
<!--			t2.member_id-->
<!--		) t2-->
<!--		LEFT JOIN class_dict t3 ON t2.class_id = t3.id-->
<!--		LEFT JOIN ( SELECT t.course_id, count( 1 ) AS paper_cnt FROM paper_dict t WHERE t.delete_date IS NULL GROUP BY t.course_id ) t4 ON t3.course_id = t4.course_id-->
<!--	) t4 ON t.class_id = t4.class_id-->
<!--	LEFT JOIN ( SELECT t.class_id, sum( 1 ) AS ask_cnt FROM answering_question t WHERE t.class_id = #{classId} AND t.delete_date IS NULL ) t5 ON t.class_id = t5.class_id-->
涂亚平 committed
233

涂亚平 committed
234
<!--    </select>-->
涂亚平 committed
235 236 237

    <select id="memberRecentPlay" resultType="com.subsidy.vo.member.ContentVodNewVO">
        SELECT
涂亚平 committed
238

涂亚平 committed
239
            t2.play_record,
涂亚平 committed
240
            t2.vod_id as id
涂亚平 committed
241
        FROM
涂亚平 committed
242 243 244 245 246
            ( SELECT max( t.create_date ) AS create_date FROM vod_play_history t WHERE t.delete_date is null and t.member_id = #{memberId} AND t.class_id = #{classId} ) t
            LEFT JOIN vod_play_history t2 ON t.create_date = t2.create_date
        WHERE
            t2.member_id = #{memberId}
            AND t2.class_id = #{classId}
涂亚平 committed
247 248
    </select>

249 250
    <select id="memberStudy" resultType="com.subsidy.vo.administer.MemberStudyLogVO">
        SELECT
涂亚平 committed
251
        DATE_SUB( t1.create_date, INTERVAL (t1.play_length+t1.suspend_length) SECOND ) AS startDate,
252
        t1.create_date AS endDate,
涂亚平 committed
253
        t3.vodName,
254 255 256 257 258 259 260 261 262 263 264
        '视频学习' AS studyType,
        t1.play_length,
        IF
        ( t2.total_length &lt;= t1.vod_length, t2.total_length, t1.vod_length ) AS total_length
        FROM
        (
        SELECT
        t.vod_id,
        t.create_date,
        t2.vod_name,
        t.play_length,
涂亚平 committed
265 266
        t2.vod_length,
        t.suspend_length
267 268 269 270
        FROM
        vod_play_history t
        LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
涂亚平 committed
271 272
        t.delete_date is null
        and t.class_id = #{classId}
273 274 275 276 277 278 279 280 281 282
        AND t.member_id = #{memberId}
        ) t1
        LEFT JOIN (
        SELECT
        t.vod_id,
        sum( t.play_length ) AS total_length
        FROM
        vod_play_history t
        LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
涂亚平 committed
283 284
        t.delete_date is null
        and t.class_id =  #{classId}
285 286 287 288
        AND t.member_id = #{memberId}
        GROUP BY
        t.vod_id
        ) t2 ON t1.vod_id = t2.vod_id
涂亚平 committed
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
        LEFT JOIN (
	SELECT
		t5.id,
		IFNULL( t4.vod_alias_name, t5.vod_name ) AS vodName
	FROM
		class_dict t1
		LEFT JOIN course_dict t2 ON t1.course_id = t2.id
		LEFT JOIN course_content t3 ON t2.id = t3.course_id
		LEFT JOIN content_vod_mapping t4 ON t3.id = t4.content_id
		LEFT JOIN vod_dict t5 ON t5.id = t4.vod_id
	WHERE
		t1.id = #{classId}
		AND t1.delete_date IS NULL
		AND t2.delete_date IS NULL
		AND t3.delete_date IS NULL
		AND t4.delete_date IS NULL
		AND t5.delete_date IS NULL
	) t3 on t2.vod_id = t3.id
307 308 309
        ORDER BY
        t1.create_date DESC
    </select>
涂亚平 committed
310 311 312 313 314

    <select id="memberStudyLog" resultType="com.subsidy.vo.administer.MemberStudyLogVO">
        SELECT
        DATE_SUB( t1.create_date, INTERVAL t1.play_length SECOND ) AS startDate,
        t1.create_date AS endDate,
涂亚平 committed
315
        t3.vodName,
涂亚平 committed
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
        '视频学习' AS studyType,
        t1.play_length,
        IF
        ( t2.total_length &lt;= t1.vod_length, t2.total_length, t1.vod_length ) AS total_length
        FROM
        (
        SELECT
        t.vod_id,
        t.create_date,
        t2.vod_name,
        t.play_length,
        t2.vod_length
        FROM
        vod_play_history t
        LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
涂亚平 committed
332 333
        t.delete_date is null
        and t.class_id = #{classId}
涂亚平 committed
334 335 336 337 338 339 340 341 342 343
        AND t.member_id = #{memberId}
        ) t1
        LEFT JOIN (
        SELECT
        t.vod_id,
        sum( t.play_length ) AS total_length
        FROM
        vod_play_history t
        LEFT JOIN vod_dict t2 ON t.vod_id = t2.id
        WHERE
涂亚平 committed
344 345
        t.delete_date is null
        and t.class_id =  #{classId}
涂亚平 committed
346 347 348 349
        AND t.member_id = #{memberId}
        GROUP BY
        t.vod_id
        ) t2 ON t1.vod_id = t2.vod_id
涂亚平 committed
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
        LEFT JOIN (
	SELECT
		t5.id,
		IFNULL( t4.vod_alias_name, t5.vod_name ) AS vodName
	FROM
		class_dict t1
		LEFT JOIN course_dict t2 ON t1.course_id = t2.id
		LEFT JOIN course_content t3 ON t2.id = t3.course_id
		LEFT JOIN content_vod_mapping t4 ON t3.id = t4.content_id
		LEFT JOIN vod_dict t5 ON t5.id = t4.vod_id
	WHERE
		t1.id = #{classId}
		AND t1.delete_date IS NULL
		AND t2.delete_date IS NULL
		AND t3.delete_date IS NULL
		AND t4.delete_date IS NULL
		AND t5.delete_date IS NULL
	) t3 on t2.vod_id = t3.id
涂亚平 committed
368 369 370
        ORDER BY
        t1.create_date DESC
    </select>
371 372 373

    <select id="memberTotalLength" parameterType="long" resultType="integer">
        SELECT
涂亚平 committed
374
            ifnull(sum( play_length ),0)
375 376 377 378 379 380 381 382 383
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND t.member_id = #{memberId}
    </select>

    <select id="memberVodTotalLength" resultType="integer">
        SELECT
涂亚平 committed
384
            ifnull(sum( t.play_length ),0)
385 386 387 388 389 390
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND t.vod_id = #{vodId}
            AND t.member_id = #{memberId}
涂亚平 committed
391
            and t.class_id = #{classId}
392
    </select>
涂亚平 committed
393 394 395 396 397 398 399 400 401 402 403 404 405 406

    <select id="exPlayInfo" resultType="com.subsidy.model.VodPlayHistoryDO">
        SELECT
            *
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND t.member_id = #{memberId}
            AND t.class_id = #{classId}
            AND DATE_FORMAT( t.play_date, '%Y-%m-%d' )  = DATE_FORMAT(  #{localDateTime}, '%Y-%m-%d' )
            order by t.play_date desc
    </select>

涂亚平 committed
407 408 409 410 411 412 413 414 415 416 417 418 419
    <select id="exPlayInfoAsc" resultType="com.subsidy.model.VodPlayHistoryDO">
        SELECT
            *
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND t.member_id = #{memberId}
            AND t.class_id = #{classId}
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' )  =  CURDATE()
            order by t.create_date
    </select>

涂亚平 committed
420
    <select id="classMemberPlayLength" parameterType="long" resultType="com.subsidy.vo.vod.ClassMemberPlayLengthVO">
涂亚平 committed
421
       SELECT
涂亚平 committed
422 423
            t.member_id,
            t.vod_id,
涂亚平 committed
424
            t6.vodName,
涂亚平 committed
425 426 427 428
            sum( t.play_length ) AS play_length
        FROM
            vod_play_history t
            LEFT JOIN class_member_mapping t2 ON t.member_id = t2.id
涂亚平 committed
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
            LEFT JOIN vod_dict t3 ON t.vod_id = t3.id
            LEFT JOIN (
            SELECT
                t5.id,
                IFNULL( t4.vod_alias_name, t5.vod_name ) AS vodName
            FROM
                class_dict t1
                LEFT JOIN course_dict t2 ON t1.course_id = t2.id
                LEFT JOIN course_content t3 ON t2.id = t3.course_id
                LEFT JOIN content_vod_mapping t4 ON t3.id = t4.content_id
                LEFT JOIN vod_dict t5 ON t5.id = t4.vod_id
            WHERE
                t1.id = #{classId}
                AND t1.delete_date IS NULL
                AND t2.delete_date IS NULL
                AND t3.delete_date IS NULL
                AND t4.delete_date IS NULL
                AND t5.delete_date IS NULL
            ) t6 ON t3.id = t6.id
涂亚平 committed
448 449 450 451 452
        WHERE
            t.delete_date IS NULL
            AND t.class_id = #{classId}
        GROUP BY
            t.class_id,
涂亚平 committed
453 454 455
            t.member_id,
            t.vod_id,
            t3.vod_name
涂亚平 committed
456
    </select>
涂亚平 committed
457

涂亚平 committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471
    <select id="getVodPlayDay" parameterType="com.subsidy.model.VodPlayHistoryDO" resultType="com.subsidy.model.VodPlayHistoryDO">
        SELECT
            *
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND t.class_id = #{classId}
            AND t.member_id = #{memberId}
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = DATE_FORMAT( #{endDate}, '%Y-%m-%d' )
        ORDER BY
            t.create_date
    </select>

涂亚平 committed
472 473 474 475 476 477 478 479 480 481 482 483
<!--    <select id="memberLatestRecord" parameterType="long" resultType="long">-->
<!--        SELECT-->
<!--            t.id-->
<!--        FROM-->
<!--            vod_play_history t-->
<!--        WHERE-->
<!--            t.member_id = #{memberId}-->
<!--        ORDER BY-->
<!--            t.create_date DESC-->
<!--            LIMIT 1-->
<!--    </select>-->

涂亚平 committed
484 485 486 487 488
    <insert id="insertPlayRecord">
        insert into vod_play_history (class_id,vod_id,member_id,play_length,suspend_length,play_record,play_count,create_date)
        VALUES (#{classId}, #{vodId}, #{memberId}, #{playLength},#{suspendLength},#{playRecord}, #{playCount},#{createDate})
    </insert>

涂亚平 committed
489 490 491 492
    <update id="updatePlayRecord">
        update vod_play_history set create_date = #{createDate} where id = #{id}
    </update>

邓敏 committed
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524
    <select id="getStudyTotal" resultType="java.lang.Double">
        SELECT
            sum( play_length )
        FROM
            vod_play_history
        WHERE
            delete_date IS NULL
    </select>

    <select id="getSubsidyStudyTotal" resultType="java.lang.Double">
        SELECT
            sum( t1.play_length )
        FROM
            vod_play_history t1
            LEFT JOIN class_dict t2 ON t2.id = t1.class_id
            LEFT JOIN course_dict t3 ON t3.id = t2.course_id
        WHERE
            t3.course_type = "补贴培训"
          AND t1.delete_date IS NULL
          AND t2.delete_date IS NULL
          AND t3.delete_date IS NULL
    </select>

    <select id="getStudyHistoryNum" resultType="java.lang.Integer">
        SELECT
            count(DISTINCT member_id)
        FROM
            vod_play_history
        WHERE
            delete_date IS NULL
    </select>

525 526 527 528 529 530 531 532 533 534 535 536 537 538
    <select id="dailyVodRecord" resultType="long">
        SELECT DISTINCT
            t1.class_id
        FROM
            vod_play_history t1
            LEFT JOIN class_dict t2 ON t1.class_id = t2.id
        WHERE
            DATE_FORMAT( t1.create_date, '%Y-%m-%d' ) = CURDATE()
            AND t2.class_code IS NOT NULL
            AND t2.class_type = 0
            AND t1.delete_date IS NULL
            AND t2.delete_date IS NULL
    </select>

涂亚平 committed
539 540 541 542 543 544 545 546 547 548 549 550 551
    <select id="dailyClassMembers" resultType="com.subsidy.vo.vod.DailyClassMembersVO">
        SELECT
            t.member_id,
            t.class_id
        FROM
            vod_play_history t
        WHERE
            t.delete_date IS NULL
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = CURRENT_DATE
        GROUP BY
            t.member_id,
            t.class_id
    </select>
552

涂亚平 committed
553
</mapper>