|
@@ -54,26 +54,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="findBusinessList" resultMap="CourseStreamingBusinessResult">
|
|
|
-
|
|
|
+ SELECT
|
|
|
+ csb.education_type_id,
|
|
|
+ csb.id AS join_id,
|
|
|
+ csb.business_id,
|
|
|
+ csb.project_id,
|
|
|
+ cet.education_name,
|
|
|
+ cpt.project_name,
|
|
|
+ cb.business_name,
|
|
|
+ FROM
|
|
|
+ course_streaming_business csb
|
|
|
+ LEFT JOIN course_education_type cet ON csb.education_type_id = cet.id
|
|
|
+ LEFT JOIN course_project_type cpt ON csb.project_id = cpt.id
|
|
|
+ LEFT JOIN course_business cb ON csb.business_id = cb.id
|
|
|
+ WHERE
|
|
|
+ csb.streaming_id=#{id}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.course.bo.CourseStreamingQueryBo" resultMap="CourseStreamingResultVo">
|
|
|
SELECT
|
|
|
cs.*,
|
|
|
- csb.education_type_id,
|
|
|
- csb.id AS join_id,
|
|
|
- csb.business_id,
|
|
|
- csb.project_id,
|
|
|
- cet.education_name,
|
|
|
- cpt.project_name,
|
|
|
- cb.business_name,
|
|
|
+
|
|
|
pv.mp4 AS polyv_url
|
|
|
FROM
|
|
|
course_streaming cs
|
|
|
LEFT JOIN course_streaming_business csb ON cs.id = csb.streaming_id
|
|
|
- LEFT JOIN course_education_type cet ON csb.education_type_id = cet.id
|
|
|
- LEFT JOIN course_project_type cpt ON csb.project_id = cpt.id
|
|
|
- LEFT JOIN course_business cb ON csb.business_id = cb.id
|
|
|
LEFT JOIN polyv_video pv ON cs.polyv_id = pv.polyv_id
|
|
|
WHERE
|
|
|
1 = 1
|